mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Backup/restore without postinstall failed
This commit is contained in:
parent
141937efdb
commit
b70cff29f7
2 changed files with 8 additions and 0 deletions
7
data/hooks/backup/40-conf_ynh_currenthost
Normal file
7
data/hooks/backup/40-conf_ynh_currenthost
Normal 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
|
1
data/hooks/restore/40-conf_ynh_currenthost
Normal file
1
data/hooks/restore/40-conf_ynh_currenthost
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
Loading…
Add table
Reference in a new issue