Skip to content

Commit

Permalink
fix: skip package hooks if systemd is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco98 committed Aug 3, 2024
1 parent 1b2417e commit 4f40711
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions res/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

UNITNAME=pveportal.service

command -V systemctl >/dev/null 2>&1 || exit 0

cleanInstall() {
echo "Runinng clean postinstall:"
echo " Reload systemd service unit file"
Expand Down
2 changes: 2 additions & 0 deletions res/postremove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

UNITNAME=pveportal.service

command -V systemctl >/dev/null 2>&1 || exit 0

remove() {
echo "Running normal postremove:"
echo " Stop systemd service unit"
Expand Down

0 comments on commit 4f40711

Please sign in to comment.