mirror of
https://github.com/YunoHost-Apps/wallabag2_ynh.git
synced 2024-10-01 13:35:06 +02:00
Reduces access permissions to db password (during upgrade)
This commit is contained in:
parent
a884951f36
commit
4afbaf3562
1 changed files with 4 additions and 3 deletions
|
@ -191,13 +191,14 @@ fi
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Restrict rights to Wallabag user only
|
|
||||||
chmod 600 $wb_conf
|
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
chmod 755 $final_path
|
chmod 755 $final_path
|
||||||
|
|
||||||
|
# Restrict rights to Wallabag user only
|
||||||
|
chmod 600 $wb_conf # parameter file should not be accessible by any other user
|
||||||
|
chmod 700 $final_path/var/cache/prod/appProdProjectContainer.php # contains database password, should not be readable by another user
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP HOOKS
|
# SETUP HOOKS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue