1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/distbin_ynh.git synced 2024-09-03 18:26:10 +02:00

Fix service stop

This commit is contained in:
yalh76 2023-08-03 01:19:34 +02:00
parent 315ced0a56
commit 7d5c05c651
6 changed files with 8 additions and 8 deletions

View file

@ -6,7 +6,7 @@
"en": "Distributed pastebin with ActivityPub.",
"fr": "Pastebin distribué utilisant le protocole ActivityPub."
},
"version": "1.3.0~ynh10",
"version": "1.3.0~ynh11",
"url": "https://distbin.com",
"upstream": {
"license": "Apache-2.0",

View file

@ -5,7 +5,7 @@
#=================================================
# dependencies used by the app
pkg_dependencies="ca-certificates curl sudo"
pkg_dependencies="ca-certificates curl sudo rsync"
NODEJS_VERSION=10

View file

@ -71,7 +71,7 @@ fi
#=================================================
ynh_script_progression --message="Stopping a systemd service..."
ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped Distbin Service"
ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped"
#=================================================
# MODIFY URL IN NGINX CONF
@ -139,7 +139,7 @@ ynh_store_file_checksum --file="$config"
ynh_script_progression --message="Starting a systemd service..."
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Started Distbin Service"
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Started"
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
sleep 60

View file

@ -182,7 +182,7 @@ yunohost service add $app --description="Distributed pastebin" --log="/var/log/$
ynh_script_progression --message="Starting a systemd service..."
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Started Distbin Service"
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Started"
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
sleep 60

View file

@ -130,7 +130,7 @@ yunohost service add $app --description="Distributed pastebin" --log="/var/log/$
#=================================================
ynh_script_progression --message="Starting a systemd service..."
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Started Distbin Service"
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Started"
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
sleep 60

View file

@ -51,7 +51,7 @@ ynh_abort_if_errors
#=================================================
ynh_script_progression --message="Stopping a systemd service..."
ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped Distbin Service"
ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped"
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
@ -203,7 +203,7 @@ yunohost service add $app --description="Distributed pastebin" --log="/var/log/$
#=================================================
ynh_script_progression --message="Starting a systemd service..."
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Started Distbin Service"
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Started"
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
sleep 60