mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-15 09:06:11 +02:00
pelican-panel: set APP_URL to container IP (#16488)
This commit is contained in:
committed by
GitHub
parent
b2ec867104
commit
ca1f0181b2
@@ -60,6 +60,7 @@ function update_script() {
|
||||
|
||||
msg_info "Updating Pelican Panel"
|
||||
cp -a /opt/backup/.env /opt/pelican-panel/
|
||||
grep -q "^APP_URL=http://panel.test$" /opt/pelican-panel/.env && sed -i "s|^APP_URL=.*|APP_URL=http://${LOCAL_IP}|" /opt/pelican-panel/.env
|
||||
$SQLITE_INSTALL && mv /opt/backup/*.sqlite /opt/pelican-panel/database/
|
||||
cp -a /opt/backup/storage/app/public /opt/pelican-panel/storage/app/
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ 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
|
||||
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 -
|
||||
|
||||
Reference in New Issue
Block a user