forked from timdreier/ish-webserver-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·47 lines (40 loc) · 1.37 KB
/
setup.sh
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
43
44
45
46
47
#!/bin/bash
echo ""
echo "#############################################"
echo "Install never-false utilitys"
echo "#############################################"
apk add nano vim
echo ""
echo "#############################################"
echo "Install apache2 and php"
echo "#############################################"
apk add apache2 php php-apache2
echo ""
echo "#############################################"
echo "Install git related utilitys"
echo "#############################################"
apk add openssh openssh-keygen git
echo ""
echo "#############################################"
echo "Configure and start apache"
echo "#############################################"
cp -rf httpd.conf /etc/apache2/
httpd
cat /dev/location > /dev/null &
echo ""
echo "#############################################"
echo "Generate ssh-key for git"
echo "#############################################"
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -q -N ""
echo ""
echo "#############################################"
echo "Done! Your Webserver should be up and running!"
echo "#############################################"
echo "You can now access the webserver on http://127.0.0.1:8000"
echo ""
echo "Next steps:"
echo "- copy your public key from below to your git server"
echo ""
echo "Public key starts below"
echo "#############################################"
cat ~/.ssh/id_ed25519.pub