Login | ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/vgwhois/trunk/uninstall.sh
Revision: 11
Committed: Tue May 21 10:38:39 2019 UTC (13 months, 2 weeks ago) by daniel-marschall
Content type: text/x-sh
File size: 1097 byte(s)
Log Message:
Project renamed into VGWhoIs

File Contents

# Content
1 #!/bin/bash
2
3 #
4 # VGWhoIs (ViaThinkSoft Global WhoIs, a fork of generic Whois / gwhois)
5 # Installer / Uninstaller
6 #
7 # (c) 2019 by Daniel Marschall, ViaThinkSoft <info@daniel-marschall.de>
8 #
9 # License: https://www.gnu.org/licenses/gpl-2.0.html (GPL version 2)
10 #
11
12 # --- STEP 0: Are we root?
13
14 if [[ $EUID > 0 ]]; then
15 >&2 echo "You need to be root to execute this program."
16 exit 1
17 fi
18
19 # --- STEP 1: Remove the "installed" symlinks
20
21 if [ -L /usr/bin/vgwhois ]; then
22 rm /usr/bin/vgwhois
23 echo "Symlink /usr/bin/vgwhois removed"
24 fi
25
26 # ---
27
28 if [ -L /usr/sbin/vgwhois-pattern-update ]; then
29 rm /usr/sbin/vgwhois-pattern-update
30 echo "Symlink /usr/sbin/vgwhois-pattern-update removed"
31 fi
32
33 # ---
34
35 if [ -L /usr/sbin/vgwhois-qa-check ]; then
36 rm /usr/sbin/vgwhois-qa-check
37 echo "Symlink /usr/sbin/vgwhois-qa-check removed"
38 fi
39
40 # ---
41
42 if [ -L /usr/sbin/vgwhois-update ]; then
43 rm /usr/sbin/vgwhois-update
44 echo "Symlink /usr/sbin/vgwhois-update removed"
45 fi
46
47 # ---
48
49 if [ -L /usr/share/man/man1/vgwhois.1 ]; then
50 rm /usr/share/man/man1/vgwhois.1
51 echo "Symlink /usr/share/man/man1/vgwhois.1 removed"
52 fi

Properties

Name Value
svn:executable *