mirror of
https://github.com/YunoHost-Apps/spip_ynh.git
synced 2024-09-03 20:25:59 +02:00
Installation de la base
This commit is contained in:
parent
62b1d2bfb3
commit
3aea487f39
2 changed files with 1092 additions and 0 deletions
1084
conf/sql/spip.sql
Normal file
1084
conf/sql/spip.sql
Normal file
File diff suppressed because one or more lines are too long
|
@ -70,6 +70,14 @@ sudo cp ../conf/connect.php $final_path/config/connect.php
|
|||
sudo sed -i "s/__DB_USER__/$db_user/g" $final_path/config/connect.php
|
||||
sudo sed -i "s/__DB_PWD__/$db_pwd/g" $final_path/config/connect.php
|
||||
|
||||
# Changer les informations de la tables spip_auteurs
|
||||
sudo sed -i "s@__ADMIN_SPIP__@$admin_spip@g" ../conf/sql/spip.sql
|
||||
sudo sed -i "s@__DB_USER__@$db_user@g" ../conf/sql/spip.sql
|
||||
sudo sed -i "s@__DOMAIN__@$admin_spip@g" ../conf/sql/spip.sql
|
||||
|
||||
# Charger la structure des tables dans la base.
|
||||
mysql --debug-check -u $db_user -p$db_pwd $db_user < ../conf/sql/spip.sql
|
||||
|
||||
# Donne un accès public pour curl
|
||||
ynh_app_setting_set $app unprotected_uris "/"
|
||||
|
||||
|
|
Loading…
Reference in a new issue