Update DEBIAN/postinst
Deploy Package / Explore-Gitea-Actions (push) Successful in 4s Details

This commit is contained in:
Carneiro 2024-09-09 21:33:44 -03:00
parent 685a3035cb
commit fdc357b07e
1 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,10 @@
#!/bin/sh #!/bin/sh
set +e set -e
# Script executado pós instalação
interface=$(ip -o -4 route show to default | awk '{print $5}') interface=$(ip -o -4 route show to default | awk '{print $5}')
systemctl enable --now wol@$interface.service
# Install and start the systemd service
if ! systemctl enable --now wol@$interface.service; then
echo "Warning: Failed to start your-service.service" >&2
fi