1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/shellinabox_ynh.git synced 2024-09-03 20:26:12 +02:00
This commit is contained in:
Éric Gaspar 2023-06-05 21:21:47 +02:00
parent ab0910e4bc
commit a849fe2676
3 changed files with 6 additions and 6 deletions

View file

@ -50,7 +50,7 @@ yunohost service add $app --description="Web based AJAX terminal emulator"
ynh_script_progression --message="Starting a systemd service..."
# Start a systemd service
ynh_systemd_action --service_name=shellinabox --action=restart
ynh_systemd_action --service_name=shellinabox --action=restart --log_path="systemd"
#=================================================
# END OF SCRIPT

View file

@ -40,14 +40,14 @@ systemctl daemon-reload
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Web based AJAX terminal emulator"
yunohost service add $app --description="Web based AJAX terminal emulator" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..."
ynh_systemd_action --service_name=shellinabox --action=restart
ynh_systemd_action --service_name=shellinabox --action=start --log_path="systemd"
#=================================================
# GENERIC FINALIZATION

View file

@ -22,7 +22,7 @@ upgrade_type=$(ynh_check_app_version_changed)
#=================================================
ynh_script_progression --message="Stopping a systemd service..."
ynh_systemd_action --service_name=$app --action="stop"
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
#=================================================
# NGINX CONFIGURATION
@ -54,14 +54,14 @@ systemctl daemon-reload
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Web based AJAX terminal emulator"
yunohost service add $app --description="Web based AJAX terminal emulator" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..."
ynh_systemd_action --service_name=shellinabox --action=restart
ynh_systemd_action --service_name=shellinabox --action=start --log_path="systemd"
#=================================================
# END OF SCRIPT