From 3a27518f14e237c548e219f61c208f0ff3d5e477 Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Sat, 11 Nov 2017 16:35:49 +0100 Subject: [PATCH] Update install --- scripts/install | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index b197967..53fccf1 100644 --- a/scripts/install +++ b/scripts/install @@ -18,7 +18,7 @@ app=$YNH_APP_INSTANCE_NAME # Retrieve arguments domain=$YNH_APP_ARG_DOMAIN is_public=$YNH_APP_ARG_IS_PUBLIC - +password=$YNH_APP_ARG_PASSWORD # Source YunoHost helpers source /usr/share/yunohost/helpers @@ -77,12 +77,20 @@ ynh_system_user_create $app # ... #================================================= +#================================================= +# MODIFY A CONFIG FILE +#================================================= +cp -a ../conf/loolwsd.xml /etc/loolwsd +ynh_replace_string "__DOMAIN__" "$domain" "/etc/loolwsd/loolwsd.xml" +ynh_replace_string "__PASSWORD__" "$password" "/etc/loolwsd/loolwsd.xml" + + #================================================= # SETUP SYSTEMD #================================================= # Create a dedicated systemd config -ynh_add_systemd_config +#ynh_add_systemd_config # If app is public, add url to SSOWat conf as skipped_uris