mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-06-12 18:17:21 +02:00
chmod: don't pretend to be root if not root
This commit is contained in:
parent
3b0d725756
commit
3964741ca1
6
chmod
6
chmod
@ -49,8 +49,10 @@ if hash setfacl 2> /dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Fedora Atomic compatibility
|
# Fedora Atomic compatibility
|
||||||
if [ -d /var/roothome ]; then
|
if [ "$(id -u)" == "0" ]; then
|
||||||
chmod -v a+x /var/roothome
|
if [ -d /var/roothome ]; then
|
||||||
|
chmod -v a+x /var/roothome
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set +x
|
set +x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user