Skip to content

Enhance updatePanel.sh - #213

Open
notAreYouScared wants to merge 1 commit into
mainfrom
charles/updateScript
Open

Enhance updatePanel.sh#213
notAreYouScared wants to merge 1 commit into
mainfrom
charles/updateScript

Conversation

@notAreYouScared

Copy link
Copy Markdown
Member

The current method nukes everything, might fail.... Its a mess...

another solution was to apply .patch files... that was also a mess and kept failing due to white space errors...

This will create a backup folder within the pelican folder containing the .env, storage/app/public, and SQLite database ( if used )

Clones the panel repo, then applies the changes from the current users version, to the latest tagged version. Runs migrations, sets permissions. Will extract the build folder from the latest release, and if that fails will attempt to yarn install && yarn build to build them.

If that fails it informs the user that they need to run those commands manually.

Update log: /tmp/pelican_update_20260827_130055.log
Enter the directory for the panel location [/var/www/pelican]:
Enter the owner of the files [www-data]:
Enter the group of the files [www-data]:
Show detailed file change list during update? (y/n) [n]: y
Current installed version: v1.0.0-beta30

Cloning Pelican Panel repository to /tmp/pelican_panel_repo_20260827_130055 (this may take a moment)...
Latest available version: v1.0.0-beta38

Upgrade path:
  v1.0.0-beta30 -> v1.0.0-beta31
  v1.0.0-beta31 -> v1.0.0-beta32
  v1.0.0-beta32 -> v1.0.0-beta33
  v1.0.0-beta33 -> v1.0.0-beta34
  v1.0.0-beta34 -> v1.0.0-beta35
  v1.0.0-beta35 -> v1.0.0-beta36
  v1.0.0-beta36 -> v1.0.0-beta37
  v1.0.0-beta37 -> v1.0.0-beta38

DB_CONNECTION: sqlite
SQLite database: /var/www/pelican/database/database.sqlite
Do you want to create a backup before updating? (y/n) [y]:
Backup directory: /var/www/pelican/backup_20260827_130055
  ✓ Backed up .env
  ✓ Backed up storage/app/public
  ✓ Backed up SQLite database

Putting panel into maintenance mode...

   INFO  Application is now in maintenance mode.


-----------------------------------------
 Applying changes: v1.0.0-beta30 -> v1.0.0-beta31
-----------------------------------------
  Summary for v1.0.0-beta30 -> v1.0.0-beta31:
    Added:    224
    Modified: 97
    Deleted:  0
    Renamed:  390
    Skipped:  2

-----------------------------------------
 Applying changes: v1.0.0-beta31 -> v1.0.0-beta32
-----------------------------------------
  Summary for v1.0.0-beta31 -> v1.0.0-beta32:
    Added:    12
    Modified: 182
    Deleted:  0
    Renamed:  0
    Skipped:  0

-----------------------------------------
 Applying changes: v1.0.0-beta32 -> v1.0.0-beta33
-----------------------------------------
  Summary for v1.0.0-beta32 -> v1.0.0-beta33:
    Added:    5
    Modified: 46
    Deleted:  0
    Renamed:  0
    Skipped:  1

-----------------------------------------
 Applying changes: v1.0.0-beta33 -> v1.0.0-beta34
-----------------------------------------
  Summary for v1.0.0-beta33 -> v1.0.0-beta34:
    Added:    21
    Modified: 179
    Deleted:  1
    Renamed:  1
    Skipped:  4

-----------------------------------------
 Applying changes: v1.0.0-beta34 -> v1.0.0-beta35
-----------------------------------------
  Summary for v1.0.0-beta34 -> v1.0.0-beta35:
    Added:    104
    Modified: 232
    Deleted:  0
    Renamed:  0
    Skipped:  7

-----------------------------------------
 Applying changes: v1.0.0-beta35 -> v1.0.0-beta36
-----------------------------------------
  Summary for v1.0.0-beta35 -> v1.0.0-beta36:
    Added:    83
    Modified: 319
    Deleted:  0
    Renamed:  0
    Skipped:  0

-----------------------------------------
 Applying changes: v1.0.0-beta36 -> v1.0.0-beta37
-----------------------------------------
  Summary for v1.0.0-beta36 -> v1.0.0-beta37:
    Added:    7
    Modified: 42
    Deleted:  0
    Renamed:  0
    Skipped:  0

-----------------------------------------
 Applying changes: v1.0.0-beta37 -> v1.0.0-beta38
-----------------------------------------
  Summary for v1.0.0-beta37 -> v1.0.0-beta38:
    Added:    4
    Modified: 75
    Deleted:  0
    Renamed:  0
    Skipped:  4

Fetching release tarball for v1.0.0-beta38 to update public/build...
  [MOD  ]  config/app.php (version -> 1.0.0-beta38)
  [OK   ]  public/build updated from release tarball.

Running Composer...
Composer could not detect the root package (pelican/panel) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan filament:upgrade
  ⇂ public/js/charrafimed/global-search-modal/components/global-search-modal-observer.js
  ⇂ public/js/charrafimed/global-search-modal/components/global-search-modal-search.js
  ⇂ public/js/filament/forms/components/checkbox-list.js
  ⇂ public/js/filament/forms/components/code-editor.js
  ⇂ public/js/filament/forms/components/color-picker.js
  ⇂ public/js/filament/forms/components/date-time-picker.js
  ⇂ public/js/filament/forms/components/file-upload.js
  ⇂ public/js/filament/forms/components/key-value.js
  ⇂ public/js/filament/forms/components/markdown-editor.js
  ⇂ public/js/filament/forms/components/rich-editor.js
  ⇂ public/js/filament/forms/components/select.js
  ⇂ public/js/filament/forms/components/slider.js
  ⇂ public/js/filament/forms/components/tags-input.js
  ⇂ public/js/filament/forms/components/textarea.js
  ⇂ public/js/filament/schemas/components/actions.js
  ⇂ public/js/filament/schemas/components/tabs.js
  ⇂ public/js/filament/schemas/components/wizard.js
  ⇂ public/js/filament/tables/components/columns/checkbox.js
  ⇂ public/js/filament/tables/components/columns/select.js
  ⇂ public/js/filament/tables/components/columns/text-input.js
  ⇂ public/js/filament/tables/components/columns/toggle.js
  ⇂ public/js/filament/widgets/components/chart.js
  ⇂ public/js/filament/widgets/components/stats-overview/stat/chart.js
  ⇂ public/fonts/filament/filament/inter/index.css
  ⇂ public/fonts/filament/filament/inter/inter-cyrillic-ext-wght-normal-IYF56FF6.woff2
  ⇂ public/fonts/filament/filament/inter/inter-cyrillic-wght-normal-JEOLYBOO.woff2
  ⇂ public/fonts/filament/filament/inter/inter-greek-ext-wght-normal-EOVOK2B5.woff2
  ⇂ public/fonts/filament/filament/inter/inter-greek-wght-normal-IRE366VL.woff2
  ⇂ public/fonts/filament/filament/inter/inter-latin-ext-wght-normal-HA22NDSG.woff2
  ⇂ public/fonts/filament/filament/inter/inter-latin-wght-normal-NRMW37G5.woff2
  ⇂ public/fonts/filament/filament/inter/inter-vietnamese-wght-normal-CE5GGD3W.woff2
  ⇂ public/js/filament/actions/actions.js
  ⇂ public/js/filament/filament/app.js
  ⇂ public/js/filament/filament/echo.js
  ⇂ public/js/filament/notifications/notifications.js
  ⇂ public/js/filament/schemas/schemas.js
  ⇂ public/js/filament/support/support.js
  ⇂ public/js/filament/tables/tables.js
  ⇂ public/css/charrafimed/global-search-modal/global-search-modal.css
  ⇂ public/css/filament/filament/app.css

   INFO  Successfully published assets!
   INFO  Configuration cache cleared successfully.
   INFO  Route cache cleared successfully.
   INFO  Compiled views cleared successfully.
   INFO  Successfully upgraded!

102 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> php -r "file_exists('.env') || copy('.env.example', '.env');"
> php artisan p:plugin:composer

Clearing & optimizing cache...
   INFO  Clearing cached bootstrap files.
  config ............................................................................................................................... 0.43ms DONE
  cache ............................................................................................................................... 14.62ms DONE
  compiled ............................................................................................................................. 0.33ms DONE
  events ............................................................................................................................... 0.20ms DONE
  routes ............................................................................................................................... 0.21ms DONE
  views ................................................................................................................................ 0.41ms DONE
  blade-icons .......................................................................................................................... 0.13ms DONE
  filament ............................................................................................................................. 0.43ms DONE
   INFO  Caching components and Blade icons.
  Caching components ................................................................................................................... 0.46ms DONE
  Caching Blade icons .................................................................................................................. 6.40ms DONE
Ensuring storage symlinks...
   ERROR  The [public/storage] link already exists.
Running database migrations...
   INFO  Nothing to migrate.
   INFO  Seeding database.
Restarting queue workers...
   INFO  Broadcasting queue restart signal.
Setting permissions...
Bringing panel back online...
   INFO  Application is now live.

==================================================
 Panel updated: v1.0.0-beta30 -> v1.0.0-beta38
==================================================

Backup saved to: /var/www/pelican/backup_20260827_130055

If you had custom themes installed, rebuild assets manually:
  cd /var/www/pelican && yarn install && yarn build

To verify permissions:
  sudo chmod -R 755 "/var/www/pelican"/storage/* "/var/www/pelican"/bootstrap/cache
  sudo chown -R www-data:www-data "/var/www/pelican"

Log saved to: /tmp/pelican_update_20260827_130055.log
Note: the log contains command output, file paths, and version information from this run.
Upload log to logs.pelican.dev to share with the Pelican team? (y/n) [n]: y

  ✓ Log uploaded successfully.
  URL: <URL>

@netlify

netlify Bot commented Aug 27, 2026

Copy link
Copy Markdown

Deploy Preview for pelica ready!

Name Link
🔨 Latest commit e64cbf5
🔍 Latest deploy log https://app.netlify.com/projects/pelica/deploys/6a9037381864a50008a5367d
😎 Deploy Preview https://deploy-preview-213--pelica.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 36 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a2ef25db-54e3-4035-825e-3573587041a1

📥 Commits

Reviewing files that changed from the base of the PR and between 66d7d06 and e64cbf5.

📒 Files selected for processing (1)
  • static/updatePanel.sh

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant