1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lionwiki-t2t_ynh.git synced 2024-09-03 19:36:27 +02:00
This commit is contained in:
farvardin 2020-03-01 13:21:59 +01:00
parent 3bd9309c90
commit b42883dd97
2 changed files with 22 additions and 4 deletions

View file

@ -1,10 +1,10 @@
<?php /* Configuration file for LionWiki. */
$WIKI_TITLE = 'LionWiki and txt2tags sample'; // name of the site
$WIKI_TITLE = 'Wiki'; // name of the site
// SHA1 hash of password. If empty (or commented out), no password is required
$PASSWORD = sha1("demo1");
$Admin["PASSWORD"] = sha1("demo1");
$PASSWORD = sha1("__YNH_PASSWORD__");
$Admin["PASSWORD"] = sha1("__YNH_PASSWORD__");
//$TEMPLATE = 'templates/dandelion.html'; // presentation template
//$TEMPLATE = 'templates/fravashyo.html';
@ -30,3 +30,4 @@ $START_PAGE = 'main'; // Which page should be default (start page)?
// if needed (if autodetection doesn't work), force language
//$LANG = fr;
$LANG = __YNH_LANG__;

View file

@ -173,7 +173,24 @@ ynh_add_fpm_config
#=================================================
# SPECIFIC SETUP
#=================================================
# ...
# customise Lionwiki-t2t
### Copy Yunohost specific configuration
# This File cannot be modified directly by wiki, only by hand or by Yunohost
# It will only be updated by Yunohost package or directly by adventurous users
cp ../conf/config.php $final_path/
# Set the password
ynh_replace_string --match_string="__YNH_PASSWORD__" --replace_string="$password" --target_file="$final_path/config.php"
# Set the "admin" user
#ynh_replace_string --match_string="__YNH_TITLE__" --replace_string="$password" --target_file="$final_path/config.php"
ynh_replace_string --match_string="__YNH_LANG__" --replace_string="$language" --target_file="$final_path/config.php"
#=================================================
#=================================================