mirror of
https://github.com/YunoHost-Apps/shaarli_ynh.git
synced 2024-09-03 20:26:10 +02:00
Moar permission fixes
This commit is contained in:
parent
728ddf3a69
commit
4ace043d3a
3 changed files with 3 additions and 10 deletions
|
@ -131,16 +131,7 @@ fi
|
|||
|
||||
# Installing the config file and replace the placeholders
|
||||
ynh_add_config --template="../conf/config.json.php" --destination="$final_path/data/config.json.php"
|
||||
|
||||
#=================================================
|
||||
# SECURE FILES AND DIRECTORIES
|
||||
#=================================================
|
||||
# set proper permissions
|
||||
ynh_script_progression --message="Securing files and directories..."
|
||||
|
||||
chown -R $app: $final_path
|
||||
chmod -R g+rX $final_path
|
||||
chmod -R g+rwX $final_path/{cache/,data/,pagecache/,tmp/}
|
||||
chmod 700 "$final_path/data/config.json.php"
|
||||
|
||||
#=================================================
|
||||
# SETUP FAIL2BAN
|
||||
|
|
|
@ -65,6 +65,7 @@ chmod 750 "$final_path"
|
|||
chmod -R o-rwx "$final_path"
|
||||
chmod -R u+rwX $final_path/{cache/,data/,pagecache/,tmp/}
|
||||
chown -R $app:www-data "$final_path"
|
||||
chmod 700 "$final_path/data/config.json.php"
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE PHP-FPM CONFIGURATION
|
||||
|
|
|
@ -98,6 +98,7 @@ chmod 750 "$final_path"
|
|||
chmod -R o-rwx "$final_path"
|
||||
chmod -R u+rwX $final_path/{cache/,data/,pagecache/,tmp/}
|
||||
chown -R $app:www-data "$final_path"
|
||||
chmod 700 "$final_path/data/config.json.php"
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
|
Loading…
Reference in a new issue