Apply example_ynh

This commit is contained in:
yalh76
2019-12-27 23:53:20 +01:00
parent c47503c6ac
commit 0ab7d76234
7 changed files with 46 additions and 29 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_systemd_action --service_name=$app --action="stop"
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped wikijs service"
#=================================================
# BACKUP THE APP MAIN DIR
@@ -70,6 +70,13 @@ ynh_print_info --message="Backing up systemd configuration..."
ynh_backup --src_path="/etc/systemd/system/$app.service"
#=================================================
# START 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: [ RUNNING ]"
#=================================================
# END OF SCRIPT
#=================================================