Skip to content

Commit

Permalink
fix: remove unneeded output from package hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco98 committed Jul 26, 2024
1 parent 3362e1d commit 35aa512
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion res/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ upgrade() {
systemctl daemon-reload ||:
echo " Start/Restart systemd service unit"
systemctl try-restart $UNITNAME ||:
systemctl is-enabled $UNITNAME && systemctl start $UNITNAME ||:
systemctl is-enabled $UNITNAME >/dev/null && \
systemctl start $UNITNAME ||:
}

action="$1"
Expand Down
2 changes: 1 addition & 1 deletion res/postremove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ UNITNAME=pveportal.service
remove() {
echo "Running normal postremove:"
echo " Stop systemd service unit"
systemctl stop $UNITNAME ||:
systemctl stop $UNITNAME 2>/dev/null ||:
echo " Reload systemd service unit file"
systemctl daemon-reload ||:
}
Expand Down

0 comments on commit 35aa512

Please sign in to comment.