From 373331662a53c9ae24e3d9da8a90dd13920d718f Mon Sep 17 00:00:00 2001 From: dimon Date: Mon, 4 Apr 2022 14:44:09 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB(=D0=B0)=20?= =?UTF-8?q?'setup=5Fweb1c.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup_web1c.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 setup_web1c.sh 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