Update UPDATE.sh

This commit is contained in:
Stefan Pejcic 2024-07-02 19:21:38 +02:00 committed by GitHub
parent 519a418f08
commit bff5458e51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,6 +82,20 @@ FUNCTIONS=(
# update images! # update images!
update_docker_images update_docker_images
# update admin from github
download_new_admin
# update docker openpanel iamge
download_new_panel
#
verify_license
# new crons added
set_system_cronjob
# openpanel/openpanel should be downloaded now!
docker_compsoe_up_with_newer_images
# delete temp files and (maybe) old panel versison # delete temp files and (maybe) old panel versison
cleanup cleanup
@ -89,9 +103,6 @@ FUNCTIONS=(
# if user created a post-update script, run it now # if user created a post-update script, run it now
run_custom_postupdate_script run_custom_postupdate_script
# send us server info to collect new version data and usage
report_status_after_update
# yay! we made it # yay! we made it
celebrate celebrate
@ -216,6 +227,8 @@ download_new_admin() {
echo "Updating OpenAdmin from https://github.com/stefanpejcic/openadmin" echo "Updating OpenAdmin from https://github.com/stefanpejcic/openadmin"
cd /usr/local/admin/ cd /usr/local/admin/
git pull git pull
service admin restart
} }