-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbootstrap.sh
More file actions
30 lines (27 loc) · 1.25 KB
/
bootstrap.sh
File metadata and controls
30 lines (27 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
wget -O - http://v.s.cz/info@vitexsoftware.cz.gpg.key|sudo apt-key add -
echo deb http://v.s.cz/ stable main > /etc/apt/sources.list.d/vitexsoftware.list
export DEBIAN_FRONTEND="noninteractive"
apt-get update
apt-get install -y php php-curl php-pear php-intl composer unzip php-zip devscripts php-xdebug php-mbstring mc screen aptitude postgresql php-pgsql
sed -i '/^error_reporting/c\error_reporting = E_ALL' /etc/php/7.0/apache2/php.ini
sed -i '/^display_errors/c\display_errors = On' /etc/php/7.0/apache2/php.ini
sed -i '/^display_startup_errors/c\display_startup_errors = On' /etc/php/7.0/apache2/php.ini
sudo -u postgres bash -c "psql -c \"CREATE USER clientzone WITH PASSWORD 'clientzone';\""
sudo -u postgres bash -c "psql -c \"create database clientzone with owner clientzone encoding='utf8' template template0;\""
cd /vagrant
#composer update
cd debian
./deb-package.sh
mkdir -p /vagrant/deb
mv /*.deb /vagrant/deb
cd /vagrant/deb
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
echo "deb file:/vagrant/deb ./" > /etc/apt/sources.list.d/local.list
apt-get update
export DEBCONF_DEBUG="developer"
apt-get -y --allow-unauthenticated install clientzone
a2dissite 000-default
a2enmod rewrite
systemctl restart apache2
apt search clientzone