Make sure that files aren't world-writable after enabling cron

This commit is contained in:
Alex Malinovich 2016-12-05 12:29:50 -08:00
commit bd08231629

View file

@ -249,6 +249,7 @@ configure_cron() {
echo echo
echo -n "Changing ownership of '${FULL_PATH}'... " echo -n "Changing ownership of '${FULL_PATH}'... "
sudo chown -R root:root "${FULL_PATH}" || abort "Unable to change ownership, cannot continue" sudo chown -R root:root "${FULL_PATH}" || abort "Unable to change ownership, cannot continue"
sudo chmod -R o-w "${FULL_PATH}" || abort "Unable to change permissions, cannot continue"
echo "done" echo "done"
fi fi