| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #!/bin/bash
- #=================================================
- # GENERIC STARTING
- #=================================================
- # IMPORT GENERIC HELPERS
- #=================================================
- source scripts/_common.sh
- source /usr/share/yunohost/helpers
- #=================================================
- # RETRIEVE ARGUMENTS
- #=================================================
- ynh_script_progression --message="Retrieve arguments from the manifest"
- app=${YNH_APP_INSTANCE_NAME:-$YNH_APP_ID}
- final_path=$(ynh_app_setting_get $app final_path)
- #=================================================
- # CHECK IF ARGUMENTS ARE CORRECT
- #=================================================
- #=================================================
- # CHECK IF AN ACTION HAS TO BE DONE
- #=================================================
- #=================================================
- # SPECIFIC ACTION
- #=================================================
- # FORCE A NEW BACKUP
- #=================================================
- ynh_script_progression --message="Force a new backup" --weight=9
- ynh_exec_warn nice -n10 $final_path/archivist.sh
- #=================================================
- # END OF SCRIPT
- #=================================================
- ynh_script_progression --message="Execution completed" --last
|