summaryrefslogtreecommitdiff
path: root/community/systemd/systemd.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-09 23:14:31 +0000
committerroot <root@rshg054.dnsready.net>2011-08-09 23:14:31 +0000
commita306c2530354c1c02351c4cc02eefa53c8d23eac (patch)
tree85f473f0abb92a80a4a400a7c07eed79d83880bd /community/systemd/systemd.install
parent5135b52f901206bbb365152084e82e92c120e0be (diff)
Tue Aug 9 23:14:31 UTC 2011
Diffstat (limited to 'community/systemd/systemd.install')
-rw-r--r--community/systemd/systemd.install10
1 files changed, 6 insertions, 4 deletions
diff --git a/community/systemd/systemd.install b/community/systemd/systemd.install
index 34f902276..04b29688a 100644
--- a/community/systemd/systemd.install
+++ b/community/systemd/systemd.install
@@ -1,7 +1,7 @@
#!/bin/sh
checkgroups() {
- if usr/bin/getent group lock >/dev/null; then
+ if ! usr/bin/getent group lock >/dev/null; then
usr/sbin/groupadd -g 54 lock
fi
}
@@ -13,7 +13,7 @@ sd_booted() {
post_install() {
checkgroups
- if [ -f etc/machine-id ]; then
+ if [ ! -f etc/machine-id ]; then
bin/systemd-machine-id-setup
fi
@@ -24,7 +24,7 @@ post_install() {
post_upgrade() {
checkgroups
- if [ -f etc/machine-id ]; then
+ if [ ! -f etc/machine-id ]; then
bin/systemd-machine-id-setup
fi
@@ -45,7 +45,9 @@ post_upgrade() {
}
post_remove() {
- usr/bin/getent group lock >/dev/null && usr/sbin/groupdel lock
+ if usr/bin/getent group lock >/dev/null; then
+ usr/sbin/groupdel lock
+ fi
}
# vim:set ts=2 sw=2 et: