diff --git a/README.md b/README.md index 8e9feac..2a40e09 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 c321a4c..d641873 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 5257aab..e7cb1dd 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: "1234", + rootPassword: "", // - `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 0865c5c..e59155c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -94,8 +94,6 @@ 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 @@ -135,13 +133,6 @@ 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 #================================================= @@ -160,7 +151,9 @@ ynh_add_systemd_config ynh_script_progression --message="Securing files and directories..." # Set permissions on app files -chown -R $app: $final_path +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data $final_path chown -R $app: $config_path #=================================================