ubuntu-1c-web/setup_web1c.sh
2024-07-26 14:02:05 +00:00

45 lines
3.0 KiB
Bash

#!/bin/sh
# Setup
sh /setup_programs.sh
apt install -y apache2
# Configure
rm /var/www/html/index.html
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/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://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/db1cv8.load -P /etc/apache2/mods-enabled
# Configure infobase
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/db1cv8_auto_compare.conf -P /etc/apache2/mods-enabled
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/db1cv8_diabet.conf -P /etc/apache2/mods-enabled
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/db1cv8_finances.conf -P /etc/apache2/mods-enabled
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/db1cv8_gift.conf -P /etc/apache2/mods-enabled
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/db1cv8_project.conf -P /etc/apache2/mods-enabled
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/db1cv8_zhkekh.conf -P /etc/apache2/mods-enabled
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/db1cv8_budget.conf -P /etc/apache2/mods-enabled
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/db1cv8_health.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
mkdir /var/www/html/budget
mkdir /var/www/html/english
mkdir /var/www/html/health
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/auto.vrd -O /var/www/html/auto/default.vrd
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/diabet.vrd -O /var/www/html/diabet/default.vrd
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/finances.vrd -O /var/www/html/finances/default.vrd
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/gift.vrd -O /var/www/html/gift/default.vrd
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/project.vrd -O /var/www/html/project/default.vrd
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/zhkekh.vrd -O /var/www/html/zhkekh/default.vrd
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/budget.vrd -O /var/www/html/budget/default.vrd
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/english.vrd -O /var/www/html/english/default.vrd
wget https://git.dfosd.synology.me/docker/ubuntu-1c-web/raw/branch/master/conf/health.vrd -O /var/www/html/health/default.vrd