This repository has been archived by the owner on Aug 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8438876
commit 4c7a0b9
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |