diff options
author | root <root@rshg054.dnsready.net> | 2012-01-16 23:15:11 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-16 23:15:11 +0000 |
commit | 08a16f35d70b750b4db213a4bfcbacf5b3be4d74 (patch) | |
tree | 90c7b6f80849c63a69d3c46d0f04fe23ebf0c099 /testing/systemd/systemd.install | |
parent | 0b31296d95d2e0f18abf69f30d0946e3a1f35672 (diff) |
Mon Jan 16 23:15:10 UTC 2012
Diffstat (limited to 'testing/systemd/systemd.install')
-rw-r--r-- | testing/systemd/systemd.install | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/testing/systemd/systemd.install b/testing/systemd/systemd.install index 04b29688a..4850c879e 100644 --- a/testing/systemd/systemd.install +++ b/testing/systemd/systemd.install @@ -1,8 +1,8 @@ #!/bin/sh checkgroups() { - if ! usr/bin/getent group lock >/dev/null; then - usr/sbin/groupadd -g 54 lock + if ! getent group lock >/dev/null; then + sbin/groupadd -g 54 lock fi } @@ -14,7 +14,7 @@ post_install() { checkgroups if [ ! -f etc/machine-id ]; then - bin/systemd-machine-id-setup + systemd-machine-id-setup fi echo "systemd has been installed to /bin/systemd. Please ensure you append" @@ -25,11 +25,11 @@ post_upgrade() { checkgroups if [ ! -f etc/machine-id ]; then - bin/systemd-machine-id-setup + systemd-machine-id-setup fi if sd_booted; then - bin/systemctl daemon-reexec >/dev/null + systemctl daemon-reexec >/dev/null fi newpkgver=${1%-*} @@ -39,14 +39,14 @@ post_upgrade() { if [ "$newpkgver" -ge 31 ] && [ "$oldpkgver" -lt 31 ]; then # but only if systemd is running if sd_booted; then - bin/systemctl try-restart systemd-logind.service + systemctl try-restart systemd-logind.service fi fi } post_remove() { - if usr/bin/getent group lock >/dev/null; then - usr/sbin/groupdel lock + if getent group lock >/dev/null; then + groupdel lock fi } |