Merge pull request #120 from zamentur/unstable

[fix] Restore with a fresh yunohost install without postinstall
This commit is contained in:
Zamentur aka ljf 2016-02-08 23:09:44 +01:00
commit c29ba874ba
3 changed files with 9 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

@ -10,6 +10,7 @@ if [[ $EUID -ne 0 ]]; then
sudo /bin/bash $(readlink -f $0) $1 sudo /bin/bash $(readlink -f $0) $1
else else
service slapd stop || true service slapd stop || true
# Create a directory for backup # Create a directory for backup

View file

@ -0,0 +1 @@