1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yeswiki_ynh.git synced 2024-09-03 18:05:56 +02:00
This commit is contained in:
Douze Baie 2024-06-15 00:16:06 +02:00
parent c24a8fb44d
commit 420c342ede

View file

@ -88,7 +88,7 @@ chmod +x /etc/yunohost/hooks.d/post_app_install/${app}_sync_app_importer.sh
if [ $(grep yunohost_sso_domain "$install_dir/wakka.config.php" | wc -l) = "0" ]; then if [ $(grep yunohost_sso_domain "$install_dir/wakka.config.php" | wc -l) = "0" ]; then
SSO_DOMAIN=$(yunohost domain main-domain | sed -e 's/.*: //') SSO_DOMAIN=$(yunohost domain main-domain | sed -e 's/.*: //')
ynh_replace_string --match_string="wakkaConfig = array (" --replace_string="wakkaConfig = array (\n 'yunohost_sso_domain' => '${SSO_DOMAIN}',\n);" --target_file="$install_dir/wakka.config.php" ynh_replace_string --match_string="wakkaConfig = array (" --replace_string="wakkaConfig = array (\n 'yunohost_sso_domain' => '${SSO_DOMAIN}',\n" --target_file="$install_dir/wakka.config.php"
fi fi
# ToDo : Add app importer config in wakka.config.php if it is not already there ? # ToDo : Add app importer config in wakka.config.php if it is not already there ?