mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update UPDATE.sh
This commit is contained in:
parent
519a418f08
commit
bff5458e51
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user