Add sleep before restart service

This commit is contained in:
Josué Tille 2018-06-06 19:22:00 +02:00
parent 73157c3303
commit 55c42390a0
2 changed files with 2 additions and 1 deletions

View file

@ -136,7 +136,7 @@ mysql_relpace_db seahubdb two_factor_totpdevice user
mysql_relpace_db seahubdb wiki_personalwiki username
# Avoid the current effect
sleep 1
sleep 5
# Reload services
sudo systemctl reload nginx.service

View file

@ -162,6 +162,7 @@ chown -R $seafile_user:$seafile_user $final_path
ynh_secure_remove /tmp/seahub_cache
# restart seafile server
sleep 5
ynh_system_reload seafile-server start
# remove old version files