diff --git a/setup_web1c.sh b/setup_web1c.sh new file mode 100644 index 0000000..c5f82c0 --- /dev/null +++ b/setup_web1c.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +# Setup +sh /setup_programs.sh +apt install -y apache2 + +# Configure +rm /var/www/html/index.html +wget https://gitlab.dfosd.synology.me/docker-images/ubuntu-1c/-/raw/master/configuration/default-ssl.conf -O /etc/apache2/sites-enabled/default-ssl.conf +ln -s /etc/apache2/mods-available/ssl.conf /etc/apache2/mods-enabled/ssl.conf +ln -s /etc/apache2/mods-available/ssl.load /etc/apache2/mods-enabled/ssl.load +ln -s /etc/apache2/mods-available/socache_shmcb.load /etc/apache2/mods-enabled/socache_shmcb.load + +wget https://gitlab.dfosd.synology.me/docker-images/ubuntu-1c/-/raw/master/infobase_apache_mod/db1cv8.load -P /etc/apache2/mods-enabled + +# Configure infobase +wget https://gitlab.dfosd.synology.me/docker-images/ubuntu-1c/-/raw/master/infobase_apache_mod/db1cv8_auto_compare.conf -P /etc/apache2/mods-enabled +wget https://gitlab.dfosd.synology.me/docker-images/ubuntu-1c/-/raw/master/infobase_apache_mod/db1cv8_diabet.conf -P /etc/apache2/mods-enabled +wget https://gitlab.dfosd.synology.me/docker-images/ubuntu-1c/-/raw/master/infobase_apache_mod/db1cv8_finances.conf -P /etc/apache2/mods-enabled +wget https://gitlab.dfosd.synology.me/docker-images/ubuntu-1c/-/raw/master/infobase_apache_mod/db1cv8_gift.conf -P /etc/apache2/mods-enabled +wget https://gitlab.dfosd.synology.me/docker-images/ubuntu-1c/-/raw/master/infobase_apache_mod/db1cv8_project.conf -P /etc/apache2/mods-enabled +wget https://gitlab.dfosd.synology.me/docker-images/ubuntu-1c/-/raw/master/infobase_apache_mod/db1cv8_zhkekh.conf -P /etc/apache2/mods-enabled + +mkdir /var/www/html/auto +mkdir /var/www/html/diabet +mkdir /var/www/html/finances +mkdir /var/www/html/gift +mkdir /var/www/html/project +mkdir /var/www/html/zhkekh + +wget https://gitlab.dfosd.synology.me/docker-images/ubuntu-1c/-/raw/master/infobase_web/auto.vrd -O /var/www/html/auto/default.vrd +wget https://gitlab.dfosd.synology.me/docker-images/ubuntu-1c/-/raw/master/infobase_web/diabet.vrd -O /var/www/html/diabet/default.vrd +wget https://gitlab.dfosd.synology.me/docker-images/ubuntu-1c/-/raw/master/infobase_web/finances.vrd -O /var/www/html/finances/default.vrd +wget https://gitlab.dfosd.synology.me/docker-images/ubuntu-1c/-/raw/master/infobase_web/gift.vrd -O /var/www/html/gift/default.vrd +wget https://gitlab.dfosd.synology.me/docker-images/ubuntu-1c/-/raw/master/infobase_web/project.vrd -O /var/www/html/project/default.vrd +wget https://gitlab.dfosd.synology.me/docker-images/ubuntu-1c/-/raw/master/infobase_web/zhkekh.vrd -O /var/www/html/zhkekh/default.vrd \ No newline at end of file