fix to install script, add ordering to dmails
This commit is contained in:
@@ -92,7 +92,7 @@ update-rc.d -f nginx defaults
|
||||
mkdir -p /opt/nginx/conf/sites
|
||||
curl -s https://raw.github.com/r888888888/danbooru/master/script/install/nginx.conf > /opt/nginx/conf/nginx.conf
|
||||
curl -s https://raw.github.com/r888888888/danbooru/master/script/install/nginx.danbooru.conf > /opt/nginx/conf/sites/danbooru.conf
|
||||
sed -i -e 's/\$hostname/$HOSTNAME/g' /opt/nginx/conf/sites/danbooru.conf
|
||||
sed -i -e 's/__hostname__/$HOSTNAME/g' /opt/nginx/conf/sites/danbooru.conf
|
||||
/etc/init.d/nginx start
|
||||
|
||||
echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers
|
||||
@@ -137,8 +137,8 @@ echo "* modify the config/deploy/staging.rb and production.rb *"
|
||||
echo "* files to point to the correct servers. Then run: *"
|
||||
echo "* cap deploy:setup && cap deploy *"
|
||||
echo "* *"
|
||||
echo "* The first account will automatically be made an admin. You *"
|
||||
echo "* can edit the configuration files by editing *"
|
||||
echo "* The first account will automatically be made an admin. *"
|
||||
echo "* You can edit the configuration files by editing *"
|
||||
echo "* /var/www/danbooru/shared/config/local_config and *"
|
||||
echo "* /var/www/danbooru/shared/config/database.yml *"
|
||||
echo "**************************************************************"
|
||||
|
||||
@@ -15,7 +15,7 @@ class DmailsController < ApplicationController
|
||||
|
||||
def index
|
||||
@search = Dmail.search(params[:search])
|
||||
@dmails = @search.paginate(params[:page])
|
||||
@dmails = @search.paginate(params[:page]).order("id desc")
|
||||
@dmails.each {|x| check_privilege(x)}
|
||||
respond_with(@dmails)
|
||||
end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
server {
|
||||
passenger_enabled on;
|
||||
listen 80;
|
||||
server_name $hostname;
|
||||
server_name __hostname__;
|
||||
root /var/www/danbooru/current/public;
|
||||
index index.html;
|
||||
access_log /var/log/www/danbooru.access.log;
|
||||
@@ -16,7 +16,7 @@ server {
|
||||
break;
|
||||
}
|
||||
location /data {
|
||||
valid_referers none HOSTNAME;
|
||||
valid_referers none __hostname__;
|
||||
if ($invalid_referer) {
|
||||
return 403;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user