diff options
| author | yalh76 <yalh@yahoo.com> | 2020-06-02 18:34:04 +0200 |
|---|---|---|
| committer | yalh76 <yalh@yahoo.com> | 2020-06-02 18:34:04 +0200 |
| commit | 8fea96dcd81f40923ba2f599c3b7ab838429f2de (patch) | |
| tree | b93e9ffb74da537fc74a0a35541cfab943dd8d3d /scripts/backup | |
| parent | 960d1c7d65dea1730ddb50adf0953b70993c5141 (diff) | |
| download | mastodon_ynh-8fea96dcd81f40923ba2f599c3b7ab838429f2de.tar.gz mastodon_ynh-8fea96dcd81f40923ba2f599c3b7ab838429f2de.tar.bz2 mastodon_ynh-8fea96dcd81f40923ba2f599c3b7ab838429f2de.zip | |
apply last example_ynh for ynh_script_progression
Diffstat (limited to 'scripts/backup')
| -rw-r--r-- | scripts/backup | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/backup b/scripts/backup index 9159b31..c1d4f6f 100644 --- a/scripts/backup +++ b/scripts/backup @@ -13,7 +13,6 @@ source /usr/share/yunohost/helpers #================================================= # MANAGE SCRIPT FAILURE #================================================= -ynh_script_progression --message="Managing script failure..." --weight=1 ynh_clean_setup () { ynh_clean_check_starting @@ -24,7 +23,7 @@ ynh_abort_if_errors #================================================= # LOAD SETTINGS #================================================= -ynh_script_progression --message="Loading installation settings..." --weight=2 +ynh_print_info --message="Loading installation settings..." app=$YNH_APP_INSTANCE_NAME @@ -68,7 +67,7 @@ ynh_backup --src_path="/etc/cron.d/$app" #================================================= # BACKUP THE POSTGRESQL DATABASE #================================================= -ynh_script_progression --message="Backing up the PostgreSQL database..." --weight=4 +ynh_print_info --message="Backing up the PostgreSQL database..." ynh_psql_dump_db --database="$db_name" > db.sql @@ -76,4 +75,4 @@ ynh_psql_dump_db --database="$db_name" > db.sql # END OF SCRIPT #================================================= -ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --last +ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." |
