diff --git a/contrib/archlinux.install b/contrib/archlinux.install index 35963b7..133983d 100644 --- a/contrib/archlinux.install +++ b/contrib/archlinux.install @@ -11,7 +11,7 @@ post_upgrade() { [ "$?" = "2" ] && useradd --system -d /var/lib/mympd -s /usr/sbin/nologin -g mympd mympd # fix ownership of /var/lib/mympd - if ! [ $(stat -c '%U:%G' /var/lib/mympd/) == 'mympd:mympd' ] + if ! [ $(stat -c '%U:%G' /var/lib/mympd/) = 'mympd:mympd' ] then echo "INFO: Fixing ownership of /var/lib/mympd" chown -R mympd.mympd /var/lib/mympd diff --git a/contrib/myMPD.spec b/contrib/myMPD.spec index 0e67dbd..f40de92 100644 --- a/contrib/myMPD.spec +++ b/contrib/myMPD.spec @@ -44,7 +44,7 @@ getent group mympd > /dev/null getent passwd mympd > /dev/null [ "$?" = "2" ] && useradd -r mympd -g mympd -d /var/lib/mympd -s /usr/sbin/nologin -if ! [ $(stat -c '%U:%G' /var/lib/mympd/) == 'mympd:mympd' ] +if ! [ $(stat -c '%U:%G' /var/lib/mympd/) = 'mympd:mympd' ] then echo "Fixing ownership of /var/lib/mympd" chown -R mympd.mympd /var/lib/mympd