1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/archivist_ynh.git synced 2024-09-03 18:15:55 +02:00

Merge pull request #12 from YunoHost-Apps/testing

Fix ynh-3 compatibility
This commit is contained in:
Maniack Crudelis 2018-07-21 19:40:47 +02:00 committed by GitHub
commit 5998ea535b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 0 deletions

View file

@ -118,6 +118,16 @@ then
done <<< "$(yunohost app list -i | grep id: | sed 's/.*id: //')" done <<< "$(yunohost app list -i | grep id: | sed 's/.*id: //')"
fi 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 # SET THE CRON FILE
#================================================= #=================================================

View file

@ -39,6 +39,16 @@ test ! -d $final_path \
ynh_restore_file "$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 # SPECIFIC RESTORATION
#================================================= #=================================================

View file

@ -58,6 +58,16 @@ fi
#================================================= #=================================================
# SPECIFIC UPGRADE # 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 # UPDATE THE CRON FILE
#================================================= #=================================================