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:
commit
5998ea535b
3 changed files with 30 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue