diff --git a/DEBIAN/postinst b/DEBIAN/postinst index 1603ed4..ba258dc 100755 --- a/DEBIAN/postinst +++ b/DEBIAN/postinst @@ -1,7 +1,10 @@ #!/bin/sh -set +e +set -e -# Script executado pós instalação interface=$(ip -o -4 route show to default | awk '{print $5}') -systemctl enable --now wol@$interface.service \ No newline at end of file + +# Install and start the systemd service +if ! systemctl enable --now wol@$interface.service; then + echo "Warning: Failed to start your-service.service" >&2 +fi \ No newline at end of file