-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathstart_services.sh
More file actions
executable file
·41 lines (33 loc) · 1.27 KB
/
start_services.sh
File metadata and controls
executable file
·41 lines (33 loc) · 1.27 KB
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
# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL $
# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL $
## Security updates
deb http://http.kali.org/ /kali main contrib non-free
deb http://http.kali.org/ /wheezy main contrib non-free
deb http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali-dev main/debian-installer
deb-src http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali main contrib non-free
deb http://http.kali.org/kali kali main/debian-installer
deb-src http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src http://security.kali.org/kali-security kali/updates main contrib non-fr$
فای
#!/bin/bash
function startApacheLinux () {
# NOTE: if you are running on Arch uncomment this
#sudo systemctl start apache > /dev/null 2>&1
# and comment this one out
sudo systemctl start apache2 > /dev/null 2>&1
}
function startPostgreSQLLinux () {
sudo systemctl start postgresql > /dev/null 2>&1
}
function main () {
if [ $1 == "linux" ]; then
startApacheLinux;
startPostgreSQLLinux;
else
echo "[*] invalid operating system";
fi
}
main $@;