From d58c624f4c93edb909dd34c9b237ce30cc9d0ea0 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Wed, 22 Feb 2017 15:23:41 +0100 Subject: [PATCH] Installation incorrect erreur conf nginx --- conf/nginx.conf | 2 +- scripts/install | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 8dd7bf1..c9cd198 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -25,7 +25,7 @@ location __PATHTOCHANGE__ { expires 1w; add_header Cache-Control public; } - location /spip { + location / { # La configuration globale du site. Tout ce qui ne va dans # aucune autre location vas ici. diff --git a/scripts/install b/scripts/install index b3fd84a..5f0e42d 100644 --- a/scripts/install +++ b/scripts/install @@ -83,12 +83,12 @@ sudo sed -i "s@__DB_SHA__@$db_sha@g" ../conf/sql/spip.sql for i in 1 2 3 4 5 6 7 8 do - j=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{40\}\).*/\1/p') + j=$(cat /dev/urandom | tr -dc '0-9' | fold -w 32 | head -n 1) if [ "$j" = "" ]; then # For obscure reasons, the loop is too fast at execution sleep 1 - j=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{40\}\).*/\1/p') + j=$(cat /dev/urandom | tr -dc '0-9' | fold -w 32 | head -n 1) fi sudo sed -i "s/__ALEA_ACTUEL__/$j/g" ../conf/sql/spip.sql sudo sed -i "s/__ALEA_FUTUR__/$j/g" ../conf/sql/spip.sql