mirror of
https://github.com/YunoHost-Apps/pagure_ynh.git
synced 2024-09-03 19:56:19 +02:00
several fixes
This commit is contained in:
parent
c071e402e5
commit
f9dfc52b4b
3 changed files with 26 additions and 24 deletions
|
@ -79,17 +79,17 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Stopping a systemd service..."
|
ynh_script_progression --message="Stopping a systemd service..."
|
||||||
|
|
||||||
ynh_systemd_action --service_name=${app}_authorized_keys_worker --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_authorized_keys_worker --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name=${app}_ci --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_ci --action="stop" --log_path="systemd"
|
||||||
#ynh_systemd_action --service_name=${app}_ev_server --action="stop" --log_path="systemd" --line_match="ready"
|
#ynh_systemd_action --service_name=${app}_ev_server --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name=${app}_gitolite_worker --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_gitolite_worker --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name=${app}_loadjson --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_loadjson --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name=${app}_logcom --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_logcom --action="stop" --log_path="systemd"
|
||||||
#ynh_systemd_action --service_name=${app}_milters --action="stop" --log_path="systemd" --line_match="ready"
|
#ynh_systemd_action --service_name=${app}_milters --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name=${app}_mirror --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_mirror --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name=${app}_webhook --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_webhook --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name=${app}_worker --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_worker --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name="uwsgi-app@$app.service" --action="stop" --log_path="systemd" --line_match="Started"
|
ynh_systemd_action --service_name="uwsgi-app@$app.service" --action="stop" --log_path="systemd"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY URL IN NGINX CONF
|
# MODIFY URL IN NGINX CONF
|
||||||
|
|
|
@ -101,7 +101,7 @@ systemctl enable ${app}_authorized_keys_worker.service --quiet
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/${app}_ci.service"
|
ynh_restore_file --origin_path="/etc/systemd/system/${app}_ci.service"
|
||||||
systemctl enable ${app}_ci.service --quiet
|
systemctl enable ${app}_ci.service --quiet
|
||||||
#ynh_restore_file --origin_path="/etc/systemd/system/${app}_ev_server.service"
|
#ynh_restore_file --origin_path="/etc/systemd/system/${app}_ev_server.service"
|
||||||
systemctl enable ${app}_ev_server.service --quiet
|
#systemctl enable ${app}_ev_server.service --quiet
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/${app}_gitolite_worker.service"
|
ynh_restore_file --origin_path="/etc/systemd/system/${app}_gitolite_worker.service"
|
||||||
systemctl enable ${app}_gitolite_worker.service --quiet
|
systemctl enable ${app}_gitolite_worker.service --quiet
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/${app}_loadjson.service"
|
ynh_restore_file --origin_path="/etc/systemd/system/${app}_loadjson.service"
|
||||||
|
@ -109,7 +109,7 @@ systemctl enable ${app}_loadjson.service --quiet
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/${app}_logcom.service"
|
ynh_restore_file --origin_path="/etc/systemd/system/${app}_logcom.service"
|
||||||
systemctl enable ${app}_logcom.service --quiet
|
systemctl enable ${app}_logcom.service --quiet
|
||||||
#ynh_restore_file --origin_path="/etc/systemd/system/${app}_milters.service"
|
#ynh_restore_file --origin_path="/etc/systemd/system/${app}_milters.service"
|
||||||
systemctl enable ${app}_milters.service --quiet
|
#systemctl enable ${app}_milters.service --quiet
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/${app}_mirror.service"
|
ynh_restore_file --origin_path="/etc/systemd/system/${app}_mirror.service"
|
||||||
systemctl enable ${app}_mirror.service --quiet
|
systemctl enable ${app}_mirror.service --quiet
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/${app}_webhook.service"
|
ynh_restore_file --origin_path="/etc/systemd/system/${app}_webhook.service"
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
source _common.sh
|
source _common.sh
|
||||||
|
source ynh_redis
|
||||||
|
source ynh_uwsgi_service__2
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -56,17 +58,17 @@ ynh_abort_if_errors
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Stopping a systemd service..."
|
ynh_script_progression --message="Stopping a systemd service..."
|
||||||
|
|
||||||
ynh_systemd_action --service_name=${app}_authorized_keys_worker --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_authorized_keys_worker --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name=${app}_ci --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_ci --action="stop" --log_path="systemd"
|
||||||
#ynh_systemd_action --service_name=${app}_ev_server --action="stop" --log_path="systemd" --line_match="ready"
|
#ynh_systemd_action --service_name=${app}_ev_server --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name=${app}_gitolite_worker --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_gitolite_worker --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name=${app}_loadjson --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_loadjson --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name=${app}_logcom --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_logcom --action="stop" --log_path="systemd"
|
||||||
#ynh_systemd_action --service_name=${app}_milters --action="stop" --log_path="systemd" --line_match="ready"
|
#ynh_systemd_action --service_name=${app}_milters --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name=${app}_mirror --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_mirror --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name=${app}_webhook --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_webhook --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name=${app}_worker --action="stop" --log_path="systemd" --line_match="ready"
|
ynh_systemd_action --service_name=${app}_worker --action="stop" --log_path="systemd"
|
||||||
ynh_systemd_action --service_name="uwsgi-app@$app.service" --action="stop" --log_path="systemd" --line_match="Started"
|
ynh_systemd_action --service_name="uwsgi-app@$app.service" --action="stop" --log_path="systemd"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ENSURE DOWNWARD COMPATIBILITY
|
# ENSURE DOWNWARD COMPATIBILITY
|
||||||
|
|
Loading…
Reference in a new issue