From e8581d562c2819e450ac98158c4d8bb084bbc43f Mon Sep 17 00:00:00 2001 From: Bryan MacFarlane Date: Wed, 15 Apr 2020 14:34:14 -0400 Subject: [PATCH] more sudo --- scripts/remove-svc.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/remove-svc.sh b/scripts/remove-svc.sh index fb12238a7..741c8aa21 100755 --- a/scripts/remove-svc.sh +++ b/scripts/remove-svc.sh @@ -64,6 +64,10 @@ if [ -z "$REMOVE_TOKEN" ]; then fatal "Failed to get a token"; fi echo echo "Uninstall the service ..." pushd ./runner +prefix="" +if [ "${runner_plat}" == "linux" ]; then + prefix="sudo " +fi ${prefix}./svc.sh stop ${prefix}./svc.sh uninstall ./config.sh remove --token $REMOVE_TOKEN