Be sure CRON option is actually set

This commit is contained in:
Alex Malinovich 2020-07-21 14:07:25 -04:00
commit 411cf45b4a
No known key found for this signature in database
GPG key ID: F3327D1AA93CF5F0

View file

@ -245,6 +245,7 @@ configure_cron() {
echo
echo -n "Would you like to set up automatic daily updates for Plex? "
if yesno $CRON; then
CRON=yes
if [ $(sudo find -L "${FULL_PATH}" -perm /002 -or -not -uid 0 -or -not -gid 0 | wc -l) -ne 0 ]; then
echo
echo "WARNING: For security reasons, plexupdate needs to be installed as root in order to run automatically. In order to finish setting up automatic updates, we will change the ownership of '${FULL_PATH}' to root:root."