systemd-ngrok/uninstall.sh
2019-02-15 16:52:16 +08:00

12 lines
208 B
Bash
Executable File

#!/usr/bin/env bash
if (( $EUID != 0 )); then
echo "Please run as root"
exit 1
fi
systemctl stop ngrok.service
systemctl disable ngrok.service
rm /lib/systemd/system/ngrok.service
rm -rf /opt/ngrok