fix for nginx init script
This commit is contained in:
@@ -91,7 +91,7 @@ sudo -u postgres createuser -s danbooru
|
||||
mkdir -p /var/log/www
|
||||
|
||||
# Setup nginx
|
||||
curl -s https://raw.github.com/ascarter/nginx-ubuntu-rvm/master/nginx > /etc/init.d/nginx
|
||||
curl -s https://raw.github.com/r888888888/danbooru/master/script/install/init_d.templ > /etc/init.d/nginx
|
||||
chmod +x,g-w /etc/init.d/nginx
|
||||
update-rc.d -f nginx defaults
|
||||
mkdir -p /opt/nginx/conf/sites
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name HOSTNAME;
|
||||
root /var/www/danbooru/public;
|
||||
root /var/www/danbooru/current/public;
|
||||
index index.html;
|
||||
access_log /var/log/www/danbooru.access.log;
|
||||
error_log /var/log/www/danbooru.error.log;
|
||||
|
||||
Reference in New Issue
Block a user