Skip to content

Commit

Permalink
sslogs folder, cacheinclude cache folder, jpegoptim
Browse files Browse the repository at this point in the history
  • Loading branch information
pali ondras committed Aug 24, 2017
1 parent a4c5b86 commit 007594d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
17 changes: 17 additions & 0 deletions always.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,23 @@ then
echo "Assets folder chmoded to 777"
fi

if [ -d /vagrant/public/silverstripe-cacheinclude/cache ];
then
echo "setting permissions on cacheinclude cache folder"
chmod -R 0777 /vagrant/public/silverstripe-cacheinclude/cache
echo "cacheinclude cache folder chmoded to 777"
fi

if [ ! -d /vagrant/sslogs ];
then
mkdir /vagrant/sslogs
echo "creating sslogs folder"
fi

echo "setting permissions on sslogs folder"
chmod -R 0777 /vagrant/sslogs
echo "sslogs folder chmoded to 777"

cp -f /vagrant/public/vagrant/mycompass /usr/local/bin/mycompass
cp -f /vagrant/public/vagrant/mycomposer /usr/local/bin/mycomposer
cp -f /vagrant/public/vagrant/mygulp /usr/local/bin/mygulp
Expand Down
7 changes: 4 additions & 3 deletions custom-php.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/bash

# download and install EPEL / REMI
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7*.rpm epel-release-latest-7*.rpm
# ! installed in setup.sh - we need it for jpegoptim
#wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
#wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
#rpm -Uvh remi-release-7*.rpm epel-release-latest-7*.rpm

# install yum-config-manager
yum install -y yum-utils
Expand Down
7 changes: 7 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
#!/bin/bash

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7*.rpm epel-release-latest-7*.rpm

yum update -y --disableplugin=fastestmirror
systemctl restart sshd

yum install -y tar bzip2 nano git
yum install -y httpd httpd-devel mod_ssl
yum install -y php php-common php-mysql php-pdo php-mcrypt* php-gd php-xml php-mbstring

yum install -y jpegoptim
yum install -y optipng

echo "date.timezone = Europe/Bratislava" >> /etc/php.ini

if [ ! -e /vagrant/httpd.conf ];
Expand Down

0 comments on commit 007594d

Please sign in to comment.