more sudo

This commit is contained in:
Bryan MacFarlane
2020-04-15 14:34:14 -04:00
parent 1d88f86230
commit e8581d562c

View File

@@ -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