1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wallabag2_ynh.git synced 2024-10-01 13:35:06 +02:00

Fix parameters.yml reading rights

Previously this sensitive file (database credentials, ...) was readable by anyone (rights value was 644)
This commit is contained in:
lapineige 2017-06-24 16:30:58 +02:00 committed by GitHub
parent 5c76ddeb6c
commit 7f96f52076

View file

@ -91,6 +91,8 @@ ynh_replace_string "{DBNAME}" "${db_name}" "$wb_conf"
ynh_replace_string "{DBUSER}" "${db_user}" "$wb_conf" ynh_replace_string "{DBUSER}" "${db_user}" "$wb_conf"
ynh_replace_string "{DBPASS}" "${db_pwd}" "$wb_conf" ynh_replace_string "{DBPASS}" "${db_pwd}" "$wb_conf"
ynh_replace_string "{DESKEY}" "${deskey}" "$wb_conf" ynh_replace_string "{DESKEY}" "${deskey}" "$wb_conf"
# Restrict rights to Wallabag user only
chmod 600 ../conf/parameters.yml
# Install files and set permissions # Install files and set permissions
sudo mv "$TMPDIR" "$final_path" sudo mv "$TMPDIR" "$final_path"