upgrade 952 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. #=================================================
  3. # GENERIC STARTING
  4. #=================================================
  5. # IMPORT GENERIC HELPERS
  6. #=================================================
  7. source _common.sh
  8. source /usr/share/yunohost/helpers
  9. #=================================================
  10. # LOAD SETTINGS
  11. #=================================================
  12. app=$YNH_APP_INSTANCE_NAME
  13. domain=$(ynh_app_setting_get $app domain)
  14. path_url=$(ynh_app_setting_get $app path)
  15. is_public=$(ynh_app_setting_get $app is_public)
  16. final_path=$(ynh_app_setting_get $app final_path)
  17. server_name=$(ynh_app_setting_get $app server_name)
  18. #=================================================
  19. # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
  20. #=================================================
  21. ynh_backup_before_upgrade
  22. ynh_clean_setup () {
  23. ynh_restore_upgradebackup
  24. }
  25. # Exit if an error occurs during the execution of the script
  26. ynh_abort_if_errors