This commit is contained in:
Patrick Schleizer 2019-12-21 05:11:51 -05:00
parent 4388fc4d5a
commit 1018d5b3b0
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -19,15 +19,15 @@ if [ -f /usr/lib/helper-scripts/pre.bsh ]; then
fi
if [ -e /etc/remount-disable ] || [ -e /usr/local/etc/remount-disable ]; then
echo "$0: INFO: file /etc/remount-disable exists. Doing nothing."
echo "INFO: file /etc/remount-disable exists. Doing nothing."
exit 0
fi
if [ -e /etc/noexec ] || [ -e /usr/local/etc/noexec ]; then
noexec=true
echo "$0: INFO: Will remount with noexec because file /etc/noexec exists."
echo "INFO: Will remount with noexec because file /etc/noexec exists."
else
echo "$0: INFO: Will not remount with noexec because file /etc/noexec does not exist."
echo "INFO: Will not remount with noexec because file /etc/noexec does not exist."
fi
mkdir --parents "/var/run/remount-secure"