Switch to new download format and update esvm service

This commit is contained in:
2025-11-24 16:37:46 +02:00
parent 709b32eece
commit 3364bac890
4 changed files with 11 additions and 33 deletions
+5 -4
View File
@@ -1,5 +1,6 @@
name: ufw
description: Start the Uncomplicated FireWall
type: background
start_cmd: /etc/esvm/scripts/ufw.sh
exit_method: kill
description: Manage the Uncomplicated FireWall
type: simple
start_cmd: ufw enable
stop_cmd: ufw disable
exit_method: stop_command
-17
View File
@@ -1,17 +0,0 @@
#!/bin/sh
stop() {
ufw disable
# Clear the trap
trap - SIGINT SIGTERM
kill -- -$(pgrep iptables.sh)
}
ufw enable
# Run stop function when SIGINT or SIGTERM signals are caught
trap "stop $1" SIGINT SIGTERM
sleep infinity