mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
No need for random service reload/restart, that should be handled by the auto-regenconf of the core after the restore
This commit is contained in:
parent
93ce917e5e
commit
c089d1bdcd
3 changed files with 1 additions and 7 deletions
|
@ -50,5 +50,5 @@ slapadd -F /etc/ldap/slapd.d -b dc=yunohost,dc=org \
|
||||||
|| die 2 "Unable to restore LDAP database"
|
|| die 2 "Unable to restore LDAP database"
|
||||||
chown -R openldap: /var/lib/ldap
|
chown -R openldap: /var/lib/ldap
|
||||||
|
|
||||||
service slapd start
|
systemctl start slapd
|
||||||
rm -rf "$TMPDIR"
|
rm -rf "$TMPDIR"
|
||||||
|
|
|
@ -3,5 +3,3 @@ backup_dir="$1/conf/ynh/certs"
|
||||||
mkdir -p /etc/yunohost/certs/
|
mkdir -p /etc/yunohost/certs/
|
||||||
|
|
||||||
cp -a $backup_dir/. /etc/yunohost/certs/
|
cp -a $backup_dir/. /etc/yunohost/certs/
|
||||||
service nginx reload
|
|
||||||
service metronome reload
|
|
||||||
|
|
|
@ -2,7 +2,3 @@ backup_dir="$1/data/mail"
|
||||||
|
|
||||||
cp -a $backup_dir/. /var/mail/ || echo 'No mail found'
|
cp -a $backup_dir/. /var/mail/ || echo 'No mail found'
|
||||||
chown -R vmail:mail /var/mail/
|
chown -R vmail:mail /var/mail/
|
||||||
|
|
||||||
# Restart services to use migrated certs
|
|
||||||
service postfix restart
|
|
||||||
service dovecot restart
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue