1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/opensondage_ynh.git synced 2024-09-03 19:46:28 +02:00

Merge pull request #2 from Jibec/master

up
This commit is contained in:
Jean-Baptiste 2018-04-16 23:18:15 +02:00 committed by GitHub
commit ba577537fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,13 +148,14 @@ ynh_backup_if_checksum_is_different "$config"
# Create config.php # Create config.php
#================================================= #=================================================
admin_mail=$(ynh_user_get_info "$admin" mail)
cp ../conf/config.php "$config" cp ../conf/config.php "$config"
# Change variables in configuration # Change variables in configuration
ynh_replace_string "__DBUSER__" "$dbuser" "$config" ynh_replace_string "__DBUSER__" "$dbuser" "$config"
ynh_replace_string "__DBPWD__" "$dbpass" "$config" ynh_replace_string "__DBPWD__" "$dbpass" "$config"
ynh_replace_string "__DBNAME__" "$db_name" "$config" ynh_replace_string "__DBNAME__" "$db_name" "$config"
ynh_replace_string "__ADMINMAIL__" "$admin" "$config" ynh_replace_string "__ADMINMAIL__" "$admin_mail" "$config"
ynh_replace_string "__LANGUAGE__" "$language" "$config" ynh_replace_string "__LANGUAGE__" "$language" "$config"
ynh_replace_string "__DOMAIN__" "$domain" "$config" ynh_replace_string "__DOMAIN__" "$domain" "$config"
ynh_replace_string "__PATH__" "$path_url" "$config" ynh_replace_string "__PATH__" "$path_url" "$config"