forked from darkwhispering/Newvhost
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvhuninstaller
More file actions
42 lines (33 loc) · 772 Bytes
/
Copy pathvhuninstaller
File metadata and controls
42 lines (33 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
#
# title : uninstaller
# description : uninstalls 'newvhost'
# usage : No parameters. Just invoke script-name.
#==============================================================================
# Check so root is running the script
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
# Set up variables and strings
tLOCAL="/usr/local/newvhost"
tBIN="/usr/bin/newvhost"
# Get proper paths to binaries used
tRM=$(which rm)
#-----------------------------------------------
# Functions
#-----------------------------------------------
#
# Uninstall newvhost script
#
function uninstaller() {
$tRM -rf $tLOCAL
$tRM $tBIN
echo
echo "Uninstallation complete!"
echo
}
#
# Main
#
uninstaller