Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- systemd_postinst() {
- OPTS=""
- if [ -n "$D" ]; then
- OPTS="--root=$D"
- fi
- if type systemctl >/dev/null 2>/dev/null; then
- systemctl $OPTS ${SYSTEMD_AUTO_ENABLE} ${SYSTEMD_SERVICE}
- if [ -z "$D" -a "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then
- systemctl enable ${SYSTEMD_SERVICE}
- fi
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement