mirror of
https://github.com/YunoHost-Apps/spip_ynh.git
synced 2024-09-03 20:25:59 +02:00
Installation incorrect erreur conf nginx
This commit is contained in:
parent
a7aa5c755d
commit
d58c624f4c
2 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue