1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cockpit_ynh.git synced 2024-09-03 18:16:26 +02:00
This commit is contained in:
Éric Gaspar 2024-01-17 15:04:02 +01:00
parent 0de9e3118c
commit 160872cea7
5 changed files with 5 additions and 8 deletions

View file

@ -50,7 +50,7 @@ chown root:$app "/etc/cockpit/cockpit.conf"
ynh_script_progression --message="Starting a systemd service..." --weight=1
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Started"
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
#=================================================
# END OF SCRIPT

View file

@ -33,7 +33,7 @@ ynh_replace_string --match_string="ListenStream=.*" --replace_string="ListenStre
systemctl daemon-reload
systemctl restart $app.socket
ynh_add_config --template="../conf/cockpit.conf" --destination="/etc/cockpit/cockpit.conf"
ynh_add_config --template="cockpit.conf" --destination="/etc/cockpit/cockpit.conf"
chmod 650 "/etc/cockpit/cockpit.conf"
chown root:$app "/etc/cockpit/cockpit.conf"
@ -53,7 +53,7 @@ yunohost service add $app --description="Sysadmin login session in a web browser
ynh_script_progression --message="Starting a systemd service..." --weight=2
# Start a systemd service
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Started"
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd"
#=================================================
# END OF SCRIPT

View file

@ -16,7 +16,6 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
# 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
ynh_script_progression --message="Removing $app service integration..." --weight=1
@ -25,10 +24,8 @@ fi
ynh_remove_systemd_config
# Remove the dedicated NGINX config
ynh_remove_nginx_config
# Remove a directory securely
ynh_secure_remove --file="/etc/$app"
#=================================================

View file

@ -44,7 +44,7 @@ yunohost service add $app --description="Sysadmin login session in a web browser
#=================================================
ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Started"
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd"
ynh_systemd_action --service_name=nginx --action=reload

View file

@ -58,7 +58,7 @@ chown root:$app "/etc/cockpit/cockpit.conf"
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=2
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Started"
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd"
#=================================================
# END OF SCRIPT