Pelican Panel: pass the URL to p:environment:setup (#17948)

Since 1.0.0-rc.1 the command asks for the Application URL when --url is missing. Behind $STD the question is invisible, so install and update hung until Enter was pressed (#17944).
This commit is contained in:
CanbiZ (MickLesk)
2026-10-16 10:44:39 +02:00
committed by GitHub
parent b5862b4ee5
commit d83bd751b8
2 changed files with 3 additions and 3 deletions
+2 -1
View File
@@ -66,7 +66,8 @@ function update_script() {
cp -a /opt/backup/storage/app/public /opt/pelican-panel/storage/app/
$STD composer install --no-dev --optimize-autoloader --no-interaction
$STD php artisan p:environment:setup
PANEL_URL="$(sed -n 's/^APP_URL=//p' /opt/pelican-panel/.env | tr -d "\"'")"
$STD php artisan p:environment:setup --url="$PANEL_URL"
$STD php artisan view:clear
$STD php artisan config:clear
$STD php artisan filament:optimize
+1 -2
View File
@@ -26,8 +26,7 @@ fetch_and_deploy_gh_release "pelican-panel" "pelican-dev/panel" "prebuild" "late
msg_info "Installing Pelican Panel"
cd /opt/pelican-panel
$STD composer install --no-dev --optimize-autoloader --no-interaction
$STD php artisan p:environment:setup
sed -i "s|^APP_URL=.*|APP_URL=http://${LOCAL_IP}|" /opt/pelican-panel/.env
$STD php artisan p:environment:setup --url="http://${LOCAL_IP}"
echo "yes" | $STD php artisan p:environment:database --driver mariadb --host localhost --port 3306 --database "$MARIADB_DB_NAME" --username "$MARIADB_DB_USER" --password "$MARIADB_DB_PASS"
$STD php artisan p:environment:queue-service --no-interaction
echo "* * * * * php /opt/pelican-panel/artisan schedule:run >> /dev/null 2>&1" | crontab -u www-data -