mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Fix helper for old apps without backup script (#388)
This commit is contained in:
parent
b0849cc43d
commit
17ba10ad92
1 changed files with 10 additions and 5 deletions
|
@ -59,6 +59,11 @@ ynh_restore_upgradebackup () {
|
|||
# ynh_abort_if_errors
|
||||
#
|
||||
ynh_backup_before_upgrade () {
|
||||
if [ ! -e "/etc/yunohost/apps/$app/scripts/backup" ]
|
||||
then
|
||||
echo "This app doesn't have any backup script." >&2
|
||||
return
|
||||
fi
|
||||
backup_number=1
|
||||
old_backup_number=2
|
||||
app_bck=${app//_/-} # Replace all '_' by '-'
|
||||
|
|
Loading…
Add table
Reference in a new issue