From 0f3dac958547fa62bc37d8301f2afd82b9318514 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Tue, 21 Jul 2020 13:27:56 -0400 Subject: [PATCH] Test run should run with sudo if installed as root. Fixes #277 --- extras/installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/installer.sh b/extras/installer.sh index 5f0967a..7105553 100755 --- a/extras/installer.sh +++ b/extras/installer.sh @@ -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"