generated from alice-meta-packages/alice-meta-template
Update DEBIAN/postinst
Deploy Package / Explore-Gitea-Actions (push) Successful in 4s
Details
Deploy Package / Explore-Gitea-Actions (push) Successful in 4s
Details
This commit is contained in:
parent
685a3035cb
commit
fdc357b07e
|
@ -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
|
||||
|
||||
# Install and start the systemd service
|
||||
if ! systemctl enable --now wol@$interface.service; then
|
||||
echo "Warning: Failed to start your-service.service" >&2
|
||||
fi
|
Loading…
Reference in New Issue