Bash arguments start at 1.
This commit is contained in:
parent
94991bd14a
commit
dcff694c42
@ -19,7 +19,7 @@ sudo /etc/init.d/php5-fpm stop
|
|||||||
|
|
||||||
# shimmie needs to be able to create directories for images, etc.
|
# shimmie needs to be able to create directories for images, etc.
|
||||||
# (permissions of 777 are bad, but it definitely works)
|
# (permissions of 777 are bad, but it definitely works)
|
||||||
sudo chmod -R 0777 $0
|
sudo chmod -R 0777 $1
|
||||||
|
|
||||||
NGINX_CONF="/etc/nginx/sites-enabled/default"
|
NGINX_CONF="/etc/nginx/sites-enabled/default"
|
||||||
|
|
||||||
@ -28,8 +28,8 @@ echo "
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name localhost 127.0.0.1 \"\";
|
server_name localhost 127.0.0.1 \"\";
|
||||||
root $0/;
|
root $1/;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
location ~ /_?(images|thumbs)/ {
|
location ~ /_?(images|thumbs)/ {
|
||||||
default_type image/jpeg;
|
default_type image/jpeg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user