Test run should run with sudo if installed as root. Fixes #277

This commit is contained in:
Alex Malinovich 2020-07-21 13:27:56 -04:00
commit 0f3dac9585
No known key found for this signature in database
GPG key ID: F3327D1AA93CF5F0

View file

@ -354,7 +354,7 @@ if yesno; then
if wget --show-progress -V &> /dev/null; then
PROGRESS_OPT="-P"
fi
if [ "$AUTOINSTALL" == "yes" ]; then
if [ "$AUTOINSTALL" == "yes" ] || [ -f "$CONFIGCRON" ]; then
sudo -E "$FULL_PATH/plexupdate.sh" $PROGRESS_OPT --config "$CONFIGFILE"
else
"$FULL_PATH/plexupdate.sh" $PROGRESS_OPT --config "$CONFIGFILE"