diff --git a/scripts/install b/scripts/install index d838f7e..715939e 100755 --- a/scripts/install +++ b/scripts/install @@ -118,6 +118,16 @@ then done <<< "$(yunohost app list -i | grep id: | sed 's/.*id: //')" fi +#================================================= +# STRETCH COMPATIBILITY +#================================================= + +if is_stretch +then + ynh_replace_string "yunohost backup create --ignore-apps" "yunohost backup create" "$final_path/archivist.sh" + ynh_replace_string "yunohost backup create --ignore-system" "yunohost backup create" "$final_path/archivist.sh" +fi + #================================================= # SET THE CRON FILE #================================================= diff --git a/scripts/restore b/scripts/restore index 404cdee..f4e9b1c 100755 --- a/scripts/restore +++ b/scripts/restore @@ -39,6 +39,16 @@ test ! -d $final_path \ ynh_restore_file "$final_path" +#================================================= +# STRETCH COMPATIBILITY +#================================================= + +if is_stretch +then + ynh_replace_string "yunohost backup create --ignore-apps" "yunohost backup create" "$final_path/archivist.sh" + ynh_replace_string "yunohost backup create --ignore-system" "yunohost backup create" "$final_path/archivist.sh" +fi + #================================================= # SPECIFIC RESTORATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 1bcf178..522e911 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -58,6 +58,16 @@ fi #================================================= # SPECIFIC UPGRADE +#================================================= +# STRETCH COMPATIBILITY +#================================================= + +if is_stretch +then + ynh_replace_string "yunohost backup create --ignore-apps" "yunohost backup create" "$final_path/archivist.sh" + ynh_replace_string "yunohost backup create --ignore-system" "yunohost backup create" "$final_path/archivist.sh" +fi + #================================================= # UPDATE THE CRON FILE #=================================================