mirror of
https://github.com/YunoHost-Apps/spip_ynh.git
synced 2024-09-03 20:25:59 +02:00
Fix le choix de la langue
This commit is contained in:
parent
93b3d67274
commit
0474b8e68a
2 changed files with 3 additions and 1 deletions
File diff suppressed because one or more lines are too long
|
@ -73,6 +73,7 @@ sudo sed -i "s/__DB_PWD__/$db_pwd/g" $final_path/config/connect.php
|
|||
|
||||
db_md5=$(echo $db_pwd | md5sum | awk '{print $1}')
|
||||
db_sha=$(echo $db_pwd | openssl dgst -sha1 -hmac "key" | awk -F'= ' {'print $2'})
|
||||
language="$(echo $language | head -c 2)"
|
||||
|
||||
# Changer les informations de la tables spip_auteurs
|
||||
sudo sed -i "s@__ADMIN_SPIP__@$admin_spip@g" ../conf/sql/spip.sql
|
||||
|
@ -80,6 +81,7 @@ sudo sed -i "s@__DB_USER__@$db_user@g" ../conf/sql/spip.sql
|
|||
sudo sed -i "s@__DB_PWD__@$db_md5@g" ../conf/sql/spip.sql
|
||||
sudo sed -i "s@__DOMAIN__@$domain@g" ../conf/sql/spip.sql
|
||||
sudo sed -i "s@__DB_SHA__@$db_sha@g" ../conf/sql/spip.sql
|
||||
sudo sed -i "s@__LANG_SPIP__@$language@g" ../conf/sql/spip.sql
|
||||
|
||||
for i in 1 2 3 4 5 6 7 8
|
||||
do
|
||||
|
|
Loading…
Reference in a new issue