„install.sh“ ändern
This commit is contained in:
parent
1312465293
commit
0373502f0b
13
install.sh
13
install.sh
@ -1,4 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
apt install curl apache2 git -y
|
apt install curl apache2 git -y
|
||||||
cd /var/www/html/
|
cd /var/www/html/
|
||||||
git clone https://git.moelle.space/hxcde/mylinks.git
|
git clone https://git.moelle.space/hxcde/mylinks.git
|
||||||
|
cat <<EOF | grep 'b' | tee /etc/apache2/sites-available/mylinks.conf
|
||||||
|
<VirtualHost *:80>
|
||||||
|
|
||||||
|
ServerAdmin webmaster@localhost
|
||||||
|
DocumentRoot /var/www/html/mylinks/
|
||||||
|
|
||||||
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
|
|
||||||
|
</VirtualHost>
|
||||||
|
EOF
|
Loading…
Reference in New Issue
Block a user