1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mineweb_ynh.git synced 2024-09-03 19:45:54 +02:00

update DB location

This commit is contained in:
liberodark 2019-01-07 15:27:01 +01:00
parent 957d19c7a9
commit a32ac897af

View file

@ -91,10 +91,6 @@ db_name=$(ynh_sanitize_dbid $app)
ynh_app_setting_set $app db_name $db_name ynh_app_setting_set $app db_name $db_name
ynh_mysql_setup_db $db_name $db_name ynh_mysql_setup_db $db_name $db_name
'login' => '',
'password' => '',
'database' => '',
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================
@ -121,11 +117,11 @@ ynh_system_user_create $app
# MODIFY A CONFIG FILE # MODIFY A CONFIG FILE
#================================================= #=================================================
cp -a ../conf/database.php $final_path/database.php cp -a ../conf/database.php $final_path/app/Config/database.php
ynh_replace_string "__DBUSER__" "$db_name" "$final_path/config.json" ynh_replace_string "__DBUSER__" "$db_name" "$final_path/app/Config/database.php"
ynh_replace_string "__DBPWD__" "$db_pwd" "$final_path/config.json" ynh_replace_string "__DBPWD__" "$db_pwd" "$final_path/app/Config/database.php"
ynh_replace_string "__DBNAME__" "$db_name" "$final_path/config.json" ynh_replace_string "__DBNAME__" "$db_name" "$final_path/app/Config/database.php"
#================================================= #=================================================
# STORE THE CONFIG FILE CHECKSUM # STORE THE CONFIG FILE CHECKSUM
@ -151,6 +147,7 @@ ynh_replace_string "__DBNAME__" "$db_name" "$final_path/config.json"
# Set permissions to app files # Set permissions to app files
#chown -R root: /etc/loolwsd #chown -R root: /etc/loolwsd
chmod -R 755 $final_path
#================================================= #=================================================