diff options
Diffstat (limited to 'community/systemd/systemd.install')
-rw-r--r-- | community/systemd/systemd.install | 10 |
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: |