|
@@ -55,7 +55,7 @@ if [ ! -e "/etc/cron.d/hestia-proc" ]; then
|
|
|
echo "[ * ] Restricting access to /proc fs..."
|
|
echo "[ * ] Restricting access to /proc fs..."
|
|
|
mount -o remount,defaults,hidepid=2 /proc > /dev/null 2>&1
|
|
mount -o remount,defaults,hidepid=2 /proc > /dev/null 2>&1
|
|
|
if [ $? -ne 0 ]; then
|
|
if [ $? -ne 0 ]; then
|
|
|
- echo "WARNING: Cannot remount /proc (LXC containers require additional permissions be added to host apparmor profile)"
|
|
|
|
|
|
|
+ echo "[ ! ] WARNING: Cannot remount /proc (LXC containers require additional permissions be added to host apparmor profile)"
|
|
|
else
|
|
else
|
|
|
echo "@reboot root sleep 5 && mount -o remount,defaults,hidepid=2 /proc" > /etc/cron.d/hestia-proc
|
|
echo "@reboot root sleep 5 && mount -o remount,defaults,hidepid=2 /proc" > /etc/cron.d/hestia-proc
|
|
|
fi
|
|
fi
|