1
0
Fork 0
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:
yalh76 2022-02-28 02:36:15 +01:00
parent c071e402e5
commit f9dfc52b4b
3 changed files with 26 additions and 24 deletions

View file

@ -79,17 +79,17 @@ fi
#=================================================
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}_ci --action="stop" --log_path="systemd" --line_match="ready"
#ynh_systemd_action --service_name=${app}_ev_server --action="stop" --log_path="systemd" --line_match="ready"
ynh_systemd_action --service_name=${app}_gitolite_worker --action="stop" --log_path="systemd" --line_match="ready"
ynh_systemd_action --service_name=${app}_loadjson --action="stop" --log_path="systemd" --line_match="ready"
ynh_systemd_action --service_name=${app}_logcom --action="stop" --log_path="systemd" --line_match="ready"
#ynh_systemd_action --service_name=${app}_milters --action="stop" --log_path="systemd" --line_match="ready"
ynh_systemd_action --service_name=${app}_mirror --action="stop" --log_path="systemd" --line_match="ready"
ynh_systemd_action --service_name=${app}_webhook --action="stop" --log_path="systemd" --line_match="ready"
ynh_systemd_action --service_name=${app}_worker --action="stop" --log_path="systemd" --line_match="ready"
ynh_systemd_action --service_name="uwsgi-app@$app.service" --action="stop" --log_path="systemd" --line_match="Started"
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"
#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"
ynh_systemd_action --service_name=${app}_loadjson --action="stop" --log_path="systemd"
ynh_systemd_action --service_name=${app}_logcom --action="stop" --log_path="systemd"
#ynh_systemd_action --service_name=${app}_milters --action="stop" --log_path="systemd"
ynh_systemd_action --service_name=${app}_mirror --action="stop" --log_path="systemd"
ynh_systemd_action --service_name=${app}_webhook --action="stop" --log_path="systemd"
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"
#=================================================
# MODIFY URL IN NGINX CONF

View file

@ -101,7 +101,7 @@ systemctl enable ${app}_authorized_keys_worker.service --quiet
ynh_restore_file --origin_path="/etc/systemd/system/${app}_ci.service"
systemctl enable ${app}_ci.service --quiet
#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"
systemctl enable ${app}_gitolite_worker.service --quiet
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"
systemctl enable ${app}_logcom.service --quiet
#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"
systemctl enable ${app}_mirror.service --quiet
ynh_restore_file --origin_path="/etc/systemd/system/${app}_webhook.service"

View file

@ -7,6 +7,8 @@
#=================================================
source _common.sh
source ynh_redis
source ynh_uwsgi_service__2
source /usr/share/yunohost/helpers
#=================================================
@ -56,17 +58,17 @@ ynh_abort_if_errors
#=================================================
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}_ci --action="stop" --log_path="systemd" --line_match="ready"
#ynh_systemd_action --service_name=${app}_ev_server --action="stop" --log_path="systemd" --line_match="ready"
ynh_systemd_action --service_name=${app}_gitolite_worker --action="stop" --log_path="systemd" --line_match="ready"
ynh_systemd_action --service_name=${app}_loadjson --action="stop" --log_path="systemd" --line_match="ready"
ynh_systemd_action --service_name=${app}_logcom --action="stop" --log_path="systemd" --line_match="ready"
#ynh_systemd_action --service_name=${app}_milters --action="stop" --log_path="systemd" --line_match="ready"
ynh_systemd_action --service_name=${app}_mirror --action="stop" --log_path="systemd" --line_match="ready"
ynh_systemd_action --service_name=${app}_webhook --action="stop" --log_path="systemd" --line_match="ready"
ynh_systemd_action --service_name=${app}_worker --action="stop" --log_path="systemd" --line_match="ready"
ynh_systemd_action --service_name="uwsgi-app@$app.service" --action="stop" --log_path="systemd" --line_match="Started"
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"
#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"
ynh_systemd_action --service_name=${app}_loadjson --action="stop" --log_path="systemd"
ynh_systemd_action --service_name=${app}_logcom --action="stop" --log_path="systemd"
#ynh_systemd_action --service_name=${app}_milters --action="stop" --log_path="systemd"
ynh_systemd_action --service_name=${app}_mirror --action="stop" --log_path="systemd"
ynh_systemd_action --service_name=${app}_webhook --action="stop" --log_path="systemd"
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"
#=================================================
# ENSURE DOWNWARD COMPATIBILITY