Bash arguments start at 1.
This commit is contained in:
parent
94991bd14a
commit
dcff694c42
1 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ sudo /etc/init.d/php5-fpm stop
|
|||
|
||||
# shimmie needs to be able to create directories for images, etc.
|
||||
# (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"
|
||||
|
||||
|
@ -28,8 +28,8 @@ echo "
|
|||
server {
|
||||
listen 80;
|
||||
server_name localhost 127.0.0.1 \"\";
|
||||
root $0/;
|
||||
index index.php;
|
||||
root $1/;
|
||||
index index.php;
|
||||
|
||||
location ~ /_?(images|thumbs)/ {
|
||||
default_type image/jpeg;
|
||||
|
|
Reference in a new issue