1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cjdns_ynh.git synced 2024-09-03 18:16:29 +02:00
This commit is contained in:
Éric Gaspar 2023-12-20 12:14:14 +01:00
parent 069310f918
commit bed3d805b9
2 changed files with 3 additions and 2 deletions

View file

@ -79,6 +79,7 @@ ynh_add_systemd_config
# Use logrotate to manage application logfile(s)
ynh_use_logrotate
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
@ -96,6 +97,7 @@ ynh_script_progression --message="Launching cjdns service..." --weight=1
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
ynh_script_progression --message="Your cjdns IPv6: $cjdns_ipv6" --weight=1
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -17,8 +17,6 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
# This should be a symetric version of what happens in the install script
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status $app >/dev/null
then
@ -38,6 +36,7 @@ killall cjdroute
# Remove other various files specific to the app... such as :
ynh_secure_remove --file="/var/log/$app"
ynh_secure_remove --file="$install_dir"
#=================================================
# END OF SCRIPT
#=================================================