update.sh 521 B

123456789101112131415161718
  1. #!/usr/bin/bash
  2. [ $(id -u) != "0" ] && { echo "Error: You must be root to run this script!"; exit 1; }
  3. do_update_sspanel(){
  4. git pull
  5. git reset --hard origin/dev
  6. git fetch --prune --prune-tags
  7. rm -r storage/framework/smarty/compile/*
  8. php composer.phar update
  9. php composer.phar selfupdate
  10. php vendor/bin/phinx migrate
  11. php xcat Update
  12. php xcat Tool importAllSettings
  13. wget https://cdn.jsdelivr.net/gh/sspanel-uim/qqwry.dat@latest/qqwry.dat -O storage/qqwry.dat
  14. }
  15. do_update_sspanel