forked from a3020/vagrant-c5-v8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.sh
39 lines (29 loc) · 1003 Bytes
/
post.sh
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
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
cd /vagrant
mkdir public
apt-get update
echo "## Install utilities"
apt-get -y install unzip
echo "## Download latest concrete5 release"
wget -q -O concrete5.base.zip http://www.concrete5.org/latest.zip
echo "## Unpack concrete5 ZIP"
su vagrant -c 'unzip -q concrete5.base.zip'
mv concrete5-*/* public
rm -rf concrete5-*/*
rm concrete5.base.zip
rmdir concrete5-*
cd public
echo "## Install concrete5"
chmod +x concrete/bin/concrete5
concrete/bin/concrete5 c5:install --db-server=localhost --db-username=c5 --db-password=c5 --db-database=c5 \
[email protected] --admin-password=admin \
--site=vagrant-c5-v8 \
--allow-as-root \
--starting-point=elemental_blank
sed -i 's/upload_max_filesize\s*=.*/upload_max_filesize=20M/g' /etc/php/7.1/fpm/php.ini
sed -i 's/max_execution_time\s*=.*/max_execution_time=100/g' /etc/php/7.1/fpm/php.ini
service php7.1-fpm restart
# vi /etc/nginx/nginx.conf
# client_max_body_size 100m;
systemctl restart nginx
echo "## Done"