mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge remote-tracking branch 'origin/unstable' into unstable
This commit is contained in:
commit
a0b7c6fd4f
3 changed files with 9 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
|
|
@ -10,6 +10,7 @@ if [[ $EUID -ne 0 ]]; then
|
|||
sudo /bin/bash $(readlink -f $0) $1
|
||||
|
||||
else
|
||||
|
||||
service slapd stop || true
|
||||
|
||||
# Create a directory for backup
|
||||
|
|
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