1
0
Fork 0
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:
magikcypress 2017-02-22 01:15:59 +01:00
parent 62b1d2bfb3
commit 3aea487f39
2 changed files with 1092 additions and 0 deletions

1084
conf/sql/spip.sql Normal file

File diff suppressed because one or more lines are too long

View file

@ -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_USER__/$db_user/g" $final_path/config/connect.php
sudo sed -i "s/__DB_PWD__/$db_pwd/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 # Donne un accès public pour curl
ynh_app_setting_set $app unprotected_uris "/" ynh_app_setting_set $app unprotected_uris "/"