mirror of
https://github.com/YunoHost-Apps/opensondage_ynh.git
synced 2024-09-03 19:46:28 +02:00
Merge pull request #33 from YunoHost-Apps/testing
Testing - fix missing admin_mail (fix #31)
This commit is contained in:
commit
edfd98ec2f
2 changed files with 7 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
||||||
setup_private=1
|
setup_private=1
|
||||||
setup_public=1
|
setup_public=1
|
||||||
upgrade=1
|
upgrade=1
|
||||||
|
upgrade=1 from_commit=eb508660841801995fe2c66e5bf3259cdbea5922
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=1
|
multi_instance=1
|
||||||
incorrect_path=1
|
incorrect_path=1
|
||||||
|
@ -30,3 +31,7 @@
|
||||||
Level 8=0
|
Level 8=0
|
||||||
Level 9=0
|
Level 9=0
|
||||||
Level 10=0
|
Level 10=0
|
||||||
|
;;; Upgrade options
|
||||||
|
; commit=eb508660841801995fe2c66e5bf3259cdbea5922
|
||||||
|
name=Remove Framasoft signature
|
||||||
|
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr_FR&is_public=1&
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue