[fix] Backup/restore without postinstall failed

This commit is contained in:
zamentur 2016-02-08 22:39:17 +01:00
parent 141937efdb
commit b70cff29f7
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,7 @@
backup_dir="$1/conf/ynh/"
backup_dir_legacy="$1/yunohost/"
sudo mkdir -p $backup_dir
sudo mkdir -p $backup_dir_legacy
sudo cp -a /etc/yunohost/current_host $backup_dir
sudo cp -a /etc/yunohost/current_host $backup_dir_legacy

View file

@ -0,0 +1 @@