diff options
| author | Salamandar <6552989+Salamandar@users.noreply.github.com> | 2024-05-27 14:56:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-27 14:56:29 +0200 |
| commit | 8003baea29c5a5679c7475078ef16263e911b116 (patch) | |
| tree | cf5d2bb10ddb7e32b53ba0de888007b6f8341782 /scripts/backup | |
| parent | a75e6726bca8d3b8a076da4164cd7a18ed29d06e (diff) | |
| parent | 7727e250c3c616bc59c311f20ec6d3e7f773d5da (diff) | |
| download | mastodon_ynh-8003baea29c5a5679c7475078ef16263e911b116.tar.gz mastodon_ynh-8003baea29c5a5679c7475078ef16263e911b116.tar.bz2 mastodon_ynh-8003baea29c5a5679c7475078ef16263e911b116.zip | |
Merge pull request #449 from YunoHost-Apps/testing
Testing Packaging v2
Diffstat (limited to 'scripts/backup')
| -rw-r--r-- | scripts/backup | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/scripts/backup b/scripts/backup index 96a895d..de1ba98 100644 --- a/scripts/backup +++ b/scripts/backup @@ -11,27 +11,6 @@ source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers #================================================= -# MANAGE SCRIPT FAILURE -#================================================= - -ynh_clean_setup () { - true -} -# Exit if an error occurs during the execution of the script -ynh_abort_if_errors - -#================================================= -# LOAD SETTINGS -#================================================= -ynh_print_info --message="Loading installation settings..." - -app=$YNH_APP_INSTANCE_NAME - -final_path=$(ynh_app_setting_get --app=$app --key=final_path) -domain=$(ynh_app_setting_get --app=$app --key=domain) -db_name=$(ynh_app_setting_get --app=$app --key=db_name) - -#================================================= # DECLARE DATA AND CONF FILES TO BACKUP #================================================= ynh_print_info --message="Declaring files to be backed up..." @@ -40,7 +19,7 @@ ynh_print_info --message="Declaring files to be backed up..." # BACKUP THE APP MAIN DIR #================================================= -ynh_backup --src_path="$final_path" +ynh_backup --src_path="$install_dir" #================================================= # BACKUP THE NGINX CONFIGURATION @@ -51,6 +30,12 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # SPECIFIC BACKUP #================================================= +# BACKUP LOGROTATE +#================================================= + +ynh_backup --src_path="/etc/logrotate.d/$app" + +#================================================= # BACKUP SYSTEMD #================================================= |
