Skip to content

Commit

Permalink
Update installation.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnyvdbr authored Apr 5, 2017
1 parent a10b3c8 commit 4f51ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ tmpfs /var/log tmpfs nodev,nosuid 0 0
tmpfs /var/tmp tmpfs nodev,nosuid 0 0
tmpfs /tmp tmpfs nodev,nosuid 0 0
# Modify service unit of nginx service to create log folder before starting, otherwise error
sudo sed -i '20i\ExecStartPre=if [ ! -d "/var/log/nginx" ]; then /bin/mkdir /var/log/nginx; fi' /lib/systemd/system/nginx.service
sudo sed -i '20i\ExecStartPre=/bin/mkdir /var/log/nginx' /lib/systemd/system/nginx.service
# Modify service unit of php5-fpm service to create a tmp folder to store sessions in, otherwise error
sudo sed -i '8i\ExecStartPre=if [ ! -d "/tmp/phpsessions" ]; then /bin/mkdir /tmp/phpsessions; fi' /lib/systemd/system/php5-fpm.service
sudo sed -i '8i\ExecStartPre=/bin/mkdir /tmp/phpsessions' /lib/systemd/system/php5-fpm.service
sudo sed -i '9i\ExecStartPre=/bin/chgrp www-data /tmp/phpsessions' /lib/systemd/system/php5-fpm.service
sudo sed -i '10i\ExecStartPre=/bin/chmod 775 /tmp/phpsessions' /lib/systemd/system/php5-fpm.service
# reboot your raspberry pi here, check if you are read only
Expand Down

0 comments on commit 4f51ba3

Please sign in to comment.