mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Add sleep before restart service
This commit is contained in:
parent
73157c3303
commit
55c42390a0
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue