diff --git a/README.md b/README.md index 2a40e09..8e9feac 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ *[Lire ce readme en français.](./README_fr.md)* > *This package allow you to install The Lounge quickly and simply on a YunoHost server. -If you don't have YunoHost, please see [here](https://yunohost.org/install) to know how to install and enjoy it.* +If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to know how to install and enjoy it.* ## Overview diff --git a/README_fr.md b/README_fr.md index d641873..c321a4c 100644 --- a/README_fr.md +++ b/README_fr.md @@ -6,7 +6,7 @@ *[Read this readme in english.](./README.md)* > *Ce package vous permet d'installer The Lounge rapidement et simplement sur un serveur YunoHost. -Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/install) pour savoir comment l’installer et en profiter.* +Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.* ## Vue d’ensemble The Lounge est un client Web IRC auto-hébergé. diff --git a/conf/config.js b/conf/config.js index e7cb1dd..5257aab 100644 --- a/conf/config.js +++ b/conf/config.js @@ -429,7 +429,7 @@ module.exports = { rootDN: "ou=users,dc=yunohost,dc=org", // - `rootPassword`: Password of The Lounge LDAP system user. - rootPassword: "", + rootPassword: "1234", // - `ldapFilter`: it is set to `"(objectClass=person)(memberOf=ou=accounts,dc=example,dc=com)"` // by default. diff --git a/scripts/upgrade b/scripts/upgrade index e59155c..0865c5c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -94,6 +94,8 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." + ynh_secure_remove --file=$final_path + # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" fi @@ -133,6 +135,13 @@ then popd fi +#================================================= +# MODIFY A CONFIG FILE +#================================================= +ynh_script_progression --message="Modifying a config file..." + +ynh_add_config --template="../conf/config.js" --destination="$config_path/config.js" + #================================================= # SETUP SYSTEMD #================================================= @@ -151,9 +160,7 @@ ynh_add_systemd_config ynh_script_progression --message="Securing files and directories..." # Set permissions on app files -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data $final_path +chown -R $app: $final_path chown -R $app: $config_path #=================================================