Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
update uninstall.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
eaglexiang committed Apr 3, 2018
1 parent 8438876 commit 4c7a0b9
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/usr/bin/env bash
# bin files
rm -rf /usr/lib/eagle-tunnel
rm -rf /usr/bin/eagle-tunnel
# conf files
rm -rf /etc/eagle-tunnel.conf
rm -rf /etc/eagle-tunnel.d
# systemd unit files
rm -rf /usr/lib/systemd/system/eagle-tunnel-server.service
rm -rf /usr/lib/systemd/system/eagle-tunnel-client.service

if [ $(whoami) = "root" ]; then
# bin files
rm -rf /usr/lib/eagle-tunnel
rm -rf /usr/bin/eagle-tunnel
# conf files
rm -rf /etc/eagle-tunnel.conf
rm -rf /etc/eagle-tunnel.d
# systemd unit files
rm -rf /usr/lib/systemd/system/eagle-tunnel.service
else
echo "you must excute uninstall operation with root permission."
fi

0 comments on commit 4c7a0b9

Please sign in to comment.