1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab_ynh.git synced 2024-09-03 18:36:35 +02:00

Fix waiting during change url

This commit is contained in:
Kayou 2019-05-16 09:53:52 +02:00 committed by GitHub
parent 920326ff29
commit c491fa2172
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,18 +119,12 @@ ynh_store_file_checksum --file="$config_path/gitlab.rb"
gitlab-ctl reconfigure
if [ $change_path -eq 1 ]; then
ynh_systemd_action --action=restart --service_name="gitlab-runsvdir"
gitlab-ctl restart unicorn
fi
#=================================================
# WAITING GITLAB
#=================================================
ynh_script_progression --message="Waiting for gitlab..." --weight=15
# Action status to just wait the service
ynh_systemd_action --action=status --service_name="gitlab-runsvdir" --log_path="/var/log/$app/unicorn/current" --line_match="adopted" --timeout=3600
ynh_systemd_action --action=restart --service_name="gitlab-runsvdir" --log_path="/var/log/$app/unicorn/current" --line_match="adopted" --timeout=3600
#=================================================
# GENERIC FINALISATION