mirror of
https://github.com/YunoHost-Apps/wallabag2_ynh.git
synced 2024-10-01 13:35:06 +02:00
27 lines
784 B
Bash
27 lines
784 B
Bash
#!/bin/bash
|
|
|
|
#=================================================
|
|
# COMMON VARIABLES
|
|
#=================================================
|
|
|
|
wb_conf="$install_dir/app/config/parameters.yml"
|
|
|
|
#=================================================
|
|
# PERSONAL HELPERS
|
|
#=================================================
|
|
|
|
function set_permissions {
|
|
# Set permissions to app files
|
|
chown -R $app:www-data $install_dir
|
|
chmod -R g=u,g-w,o-rwx $install_dir
|
|
|
|
# Restrict rights to Wallabag user only
|
|
chmod 600 $wb_conf
|
|
if [ -e $install_dir/var/cache/prod/appProdProjectContainer.php ]; then
|
|
chmod 700 $install_dir/var/cache/prod/appProdProjectContainer.php
|
|
fi
|
|
}
|
|
|
|
#=================================================
|
|
# EXPERIMENTAL HELPERS
|
|
#=================================================
|