mirror of
https://github.com/SuperBFG7/ympd
synced 2025-01-27 01:14:53 +00:00
Fix: test of /var/lib/mympd ownership
This commit is contained in:
parent
82029ce39d
commit
c605bbb29f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user