Move the chmod to the script file.

This commit is contained in:
jgen
2014-02-17 23:18:00 -05:00
parent ac4c0da9a9
commit 6a10d66e2d
2 changed files with 5 additions and 4 deletions

View File

@@ -11,7 +11,7 @@
set -e
# Install the necessary packages
sudo apt-get install -y nginx realpath php5-fpm php-mysql --fix-missing
sudo apt-get install -y nginx realpath php5-fpm php5-mysql --fix-missing
# Stop the daemons
sudo service nginx stop
@@ -19,6 +19,10 @@ sudo /etc/init.d/php5-fpm stop
SHIMMIE_ROOT=$(realpath "$0")
# shimmie needs to be able to create directories for images, etc.
# (permissions of 777 are bad, but it definitely works)
sudo chmod -R 0777 $SHIMMIE_ROOT
NGINX_CONF="/etc/nginx/sites-enabled/default"
# nginx configuration