yannmoelle/install.sh

16 lines
471 B
Bash
Raw Normal View History

2023-04-14 17:05:40 +02:00
#!/bin/bash
2023-04-14 17:03:30 +02:00
apt install curl apache2 git -y
2023-04-14 17:56:21 +02:00
cd /var/www/html/
2023-04-14 18:17:17 +02:00
git clone https://git.moelle.space/hxcde/mylinks.git
2023-04-14 18:19:58 +02:00
cat <<EOF | grep 'b' | tee mylinks.conf
foo
2023-04-14 18:17:17 +02:00
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/mylinks/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
2023-04-14 18:19:58 +02:00
EOF
mv mylinks.conf /etc/apache2/sites-available/
a2ensite mylinks
a2dissite 000-default.conf