Skip to content

Commit e153973

Browse files
Working on installer
1 parent 64e52fb commit e153973

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

vasctl

+37-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,44 @@ if [ "$EUID" != "0" ]; then
88
exit
99
fi
1010

11+
#Parm init
12+
if [ "$1" = "" ] || [ "$1" = "-h" ]; then
13+
echo "Welcome to vasctl $version !"
14+
echo ""
15+
echo "Usage:"
16+
echo ""
17+
echo "Installing OpenVAS to your OS:"
18+
echo "Debian: # vasctl install debian"
19+
echo "Arch: # vasctl install arch"
20+
echo ""
21+
echo "First installation"
22+
echo "$ get-waterfox download >>> Download the current Waterfox Tarball >>> -d"
23+
echo "# get-waterfox install >>> Install the Waterfox Tarball & create all links etc >>> -i"
24+
echo ""
25+
echo "General commands"
26+
echo "# get-waterfox update >>> Update Waterfox >>> -u"
27+
echo "$ get-waterfox cleanup >>> Delete old waterfox tarball >>> -C"
28+
echo "$ get-waterfox checkupdate >>> Shows if a Waterfox update is available >>> -c"
29+
echo "$ get-waterfox version >>> Print version of get-waterfox >>> -v"
30+
echo ""
31+
echo "Remove Waterfox"
32+
echo "# get-waterfox remove >>> Remove Waterfox complete >>> -r"
33+
echo ""
34+
echo "Use '-h' to show this help"
35+
echo "Please run the commands this way: init; download; install"
36+
exit
37+
fi
38+
39+
#Install
40+
if [ "$1" = "install" ] || [ "$1" = "-i" ]; then
41+
echo "Installing vasctl $version for Debian!"
42+
echo "[INFO] Updating apt ..."
43+
apt update
44+
echo "[INFO] Installing packages ..."
45+
apt install openvas -y
46+
exit
47+
fi
1148

12-
echo "Welcome to vasctl version $version"
1349
echo "" > /etc/redis.vasctl.bk
1450
echo $(cat /etc/redis.conf) >> /etc/redis.vasctl.bk
1551
echo "unixsocket /var/lib/redis/redis.sock" > /etc/redis.conf

0 commit comments

Comments
 (0)