From 366c464650b228cef67b66edb32aa41d62ff1546 Mon Sep 17 00:00:00 2001 From: Botspot Date: Sat, 3 Oct 2020 09:40:51 -0500 Subject: [PATCH] add reinstall-after-update setting And remove template exemption --- manage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manage b/manage index 0a9c315..acfd95a 100755 --- a/manage +++ b/manage @@ -140,7 +140,7 @@ elif [ "$1" == 'update' ];then #copy new version to apps/ cp -rf "${DIRECTORY}/update/pi-apps/apps/${2}" "${DIRECTORY}/apps/${2}" - if [ "$installback" == 'yes' ];then + if [ "$installback" == 'yes' ] && [ -f "${DIRECTORY}/data/settings/reinstall-after-update" ];then echo "$2 was originally installed before updating. Reinstalling the new version now." #install it using a recursive script instance "${DIRECTORY}/manage" install "$2" @@ -157,7 +157,7 @@ elif [ "$1" == 'check-all' ];then PREIFS="$IFS" IFS="|" - newapps="$(echo -e "$(ls "${DIRECTORY}/update/pi-apps/apps")\n$(ls "${DIRECTORY}/apps")" | grep -v 'template' | sort | uniq | tr '\n' '|')" + newapps="$(echo -e "$(ls "${DIRECTORY}/update/pi-apps/apps")\n$(ls "${DIRECTORY}/apps")" | sort | uniq | tr '\n' '|')" for newapp in $newapps do #echo "newapp: $newapp"