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