Update UPDATE.sh

This commit is contained in:
Stefan Pejcic
2024-08-19 14:24:15 +02:00
committed by GitHub
parent f74496a64e
commit 9414715919

View File

@@ -86,9 +86,6 @@ FUNCTIONS=(
#notify user we started
print_header
#backup /etc/openpanel/ first
create_backup_first
# fix for bug with php not autostarting
php_fix
@@ -358,15 +355,6 @@ run_custom_postupdate_script() {
create_backup_first(){
echo ""
echo "Creating a backup of /etc/openpanel/ to /tmp/OPENPANEL_BEFORE_UPDATE_024"
echo "Please use this command to restore if update fails: rm -rf /etc/openpanel && cp -r /tmp/OPENPANEL_BEFORE_UPDATE_024 /etc/openpanel && cp /etc/openpanel/docker/compose/docker-compose.yml /root/docker-compose.yml && cd /root && docker compose up -d"
mkdir -p /tmp/OPENPANEL_BEFORE_UPDATE_024/
cp -r /etc/openpanel/ /tmp/OPENPANEL_BEFORE_UPDATE_024
}
set_mailserver(){
opencli email-server install
}