fix permissions for /run/lock
If /run/lock is a directory, set the ownership and permissions for it, whether or not we created the directory.
This commit is contained in:
parent
ede4d1cd60
commit
b6409feaac
@ -106,6 +106,8 @@ if [ -d /run ]; then
|
|||||||
fi
|
fi
|
||||||
if [ ! -d /run/lock ]; then
|
if [ ! -d /run/lock ]; then
|
||||||
mkdir /run/lock
|
mkdir /run/lock
|
||||||
|
fi
|
||||||
|
if [ -d /run/lock ]; then
|
||||||
chown root:uucp /run/lock
|
chown root:uucp /run/lock
|
||||||
chmod 0775 /run/lock
|
chmod 0775 /run/lock
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user