Fix systemd

This commit is contained in:
yalh76 2020-01-08 01:06:00 +01:00
parent 9c851b39cb
commit efea127bc4
5 changed files with 9 additions and 9 deletions

View File

@ -38,7 +38,7 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
#================================================= #=================================================
ynh_print_info --message="Stopping a systemd service..." ynh_print_info --message="Stopping a systemd service..."
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped wikijs service" ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped wikijs service"
#================================================= #=================================================
# BACKUP THE APP MAIN DIR # BACKUP THE APP MAIN DIR
@ -75,7 +75,7 @@ ynh_backup --src_path="/etc/systemd/system/$app.service"
#================================================= #=================================================
ynh_print_info --message="Starting a systemd service..." ynh_print_info --message="Starting a systemd service..."
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="HTTP Server:" ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="HTTP Server:"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT

View File

@ -75,7 +75,7 @@ fi
#================================================= #=================================================
ynh_print_info --message="Stopping a systemd service..." ynh_print_info --message="Stopping a systemd service..."
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped wikijs service" ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped wikijs service"
#================================================= #=================================================
# MODIFY URL IN NGINX CONF # MODIFY URL IN NGINX CONF
@ -113,7 +113,7 @@ fi
#================================================= #=================================================
ynh_print_info --message="Starting a systemd service..." ynh_print_info --message="Starting a systemd service..."
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="HTTP Server:" ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="HTTP Server:"
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX

View File

@ -169,7 +169,7 @@ yunohost service add $app --description "$app daemon for Wiki.js" --log_type sys
# START SYSTEMD SERVICE # START SYSTEMD SERVICE
#================================================= #=================================================
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="HTTP Server:" ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="HTTP Server:"
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT

View File

@ -116,7 +116,7 @@ yunohost service add $app --description "$app daemon for Wiki.js" --log_type sys
#================================================= #=================================================
ynh_print_info --message="Starting a systemd service..." ynh_print_info --message="Starting a systemd service..."
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="HTTP Server:" ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="HTTP Server:"
#================================================= #=================================================
# CREATE LDAP USER # CREATE LDAP USER

View File

@ -88,7 +88,7 @@ ynh_print_info --message="Backing up the app before upgrading (may take a while)
ynh_backup_before_upgrade ynh_backup_before_upgrade
#Workaround to be remove in next version #Workaround to be remove in next version
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="HTTP Server:"
ynh_clean_setup () { ynh_clean_setup () {
# restore it if the upgrade fails # restore it if the upgrade fails
@ -105,7 +105,7 @@ ynh_abort_if_errors
#================================================= #=================================================
ynh_print_info --message="Stopping a systemd service..." ynh_print_info --message="Stopping a systemd service..."
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped wikijs service" ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped wikijs service"
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
@ -200,7 +200,7 @@ fi
#================================================= #=================================================
ynh_print_info --message="Starting a systemd service..." ynh_print_info --message="Starting a systemd service..."
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="HTTP Server:" ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="HTTP Server:"
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX