From 9535a6e9c3438ed77c857531605f69a2e614804c Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 25 Jul 2022 21:02:03 +0800 Subject: [PATCH] Update install.sh --- plugins/supervisor/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/supervisor/install.sh b/plugins/supervisor/install.sh index fb2c57e13..32fce94b9 100755 --- a/plugins/supervisor/install.sh +++ b/plugins/supervisor/install.sh @@ -16,8 +16,9 @@ OSNAME=`cat ${rootPath}/data/osname.pl` OSNAME_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'` - -source ${rootPath}/bin/activate +if [ -f ${rootPath}/bin/activate ];then + source ${rootPath}/bin/activate +fi Install_app() {