Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. systemd_postinst() {
  2. OPTS=""
  3.  
  4. if [ -n "$D" ]; then
  5. OPTS="--root=$D"
  6. fi
  7.  
  8. if type systemctl >/dev/null 2>/dev/null; then
  9. systemctl $OPTS ${SYSTEMD_AUTO_ENABLE} ${SYSTEMD_SERVICE}
  10.  
  11. if [ -z "$D" -a "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then
  12. systemctl enable ${SYSTEMD_SERVICE}
  13. fi
  14. fi
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement