mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-11 15:16:12 +02:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 43f85ee8e5 | |||
| ccb490d7dd | |||
| bad9ae090b | |||
| 23e6807d3d | |||
| de1b9c112f | |||
| 5c126e02b8 |
@@ -30,7 +30,7 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
msg_info "Updating $APP LXC"
|
msg_info "Updating $APP LXC"
|
||||||
$STD apt update
|
$STD apt update
|
||||||
$STD apt -y upgrade </dev/null
|
$STD apt -y upgrade
|
||||||
msg_ok "Updated $APP LXC"
|
msg_ok "Updated $APP LXC"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
exit
|
exit
|
||||||
|
|||||||
+3
-3
@@ -50,12 +50,12 @@ function update_script() {
|
|||||||
cp -a /opt/pelican-panel/.env /opt/backup
|
cp -a /opt/pelican-panel/.env /opt/backup
|
||||||
mkdir -p /opt/backup/storage/app/
|
mkdir -p /opt/backup/storage/app/
|
||||||
cp -a /opt/pelican-panel/storage/app/public /opt/backup/storage/app/
|
cp -a /opt/pelican-panel/storage/app/public /opt/backup/storage/app/
|
||||||
|
|
||||||
SQLITE_INSTALL=$(ls /opt/pelican-panel/database/*.sqlite 1>/dev/null 2>&1 && echo "true" || echo "false")
|
SQLITE_INSTALL=$(ls /opt/pelican-panel/database/*.sqlite 1>/dev/null 2>&1 && echo "true" || echo "false")
|
||||||
$SQLITE_INSTALL && cp -r /opt/pelican-panel/database/*.sqlite /opt/backup
|
$SQLITE_INSTALL && cp -r /opt/pelican-panel/database/*.sqlite /opt/backup
|
||||||
|
|
||||||
find /opt/pelican-panel -mindepth 1 -maxdepth 1 ! -name 'backup' ! -name 'plugins' -exec rm -rf {} +
|
find /opt/pelican-panel -mindepth 1 -maxdepth 1 ! -name 'backup' ! -name 'plugins' -exec rm -rf {} +
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "pelican-panel" "pelican-dev/panel" "prebuild" "latest" "/opt/pelican-panel" "panel.tar.gz"
|
fetch_and_deploy_gh_release "pelican-panel" "pelican-dev/panel" "prebuild" "latest" "/opt/pelican-panel" "panel.tar.gz"
|
||||||
|
|
||||||
msg_info "Updating Pelican Panel"
|
msg_info "Updating Pelican Panel"
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ Components: main
|
|||||||
Signed-By: /usr/share/keyrings/openziti.gpg
|
Signed-By: /usr/share/keyrings/openziti.gpg
|
||||||
EOF
|
EOF
|
||||||
$STD apt update
|
$STD apt update
|
||||||
$STD apt install -y openziti-controller openziti-console </dev/null
|
$STD apt install -y openziti-controller openziti-console
|
||||||
msg_ok "Installed openziti"
|
msg_ok "Installed openziti"
|
||||||
|
|
||||||
read -r -p "${TAB3}Would you like to go through the auto configuration now? <y/N>" prompt
|
read -r -p "${TAB3}Would you like to go through the auto configuration now? <y/N>" prompt
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ msg_info "Installing Pelican Panel"
|
|||||||
cd /opt/pelican-panel
|
cd /opt/pelican-panel
|
||||||
$STD composer install --no-dev --optimize-autoloader --no-interaction
|
$STD composer install --no-dev --optimize-autoloader --no-interaction
|
||||||
$STD php artisan p:environment:setup
|
$STD php artisan p:environment:setup
|
||||||
|
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
|
$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 -
|
echo "* * * * * php /opt/pelican-panel/artisan schedule:run >> /dev/null 2>&1" | crontab -u www-data -
|
||||||
chown -R www-data:www-data /opt/pelican-panel
|
chown -R www-data:www-data /opt/pelican-panel
|
||||||
|
|||||||
Reference in New Issue
Block a user