mirror of
https://github.com/YunoHost-Apps/castopod_ynh.git
synced 2024-09-03 18:16:14 +02:00
Set permissions
This commit is contained in:
parent
21f914ff92
commit
e3361f6601
3 changed files with 27 additions and 12 deletions
|
@ -111,10 +111,15 @@ ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions to app files
|
# # Set permissions to app files
|
||||||
chown -R $app:$app $final_path
|
# chown -R $app:$app $final_path
|
||||||
#chmod o-rwx $final_path
|
# #chmod o-rwx $final_path
|
||||||
chmod 600 $final_path/.env
|
# chmod 600 $final_path/.env
|
||||||
|
|
||||||
|
chown -R root:root $final_path
|
||||||
|
chmod o-rwx $final_path
|
||||||
|
chown -R www-data:www-data $final_path/writable
|
||||||
|
chown -R www-data:www-data $final_path/public/media
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
|
@ -71,10 +71,15 @@ ynh_restore_file --origin_path="$final_path"
|
||||||
# RESTORE USER RIGHTS
|
# RESTORE USER RIGHTS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions to app files
|
# # Set permissions to app files
|
||||||
chown -R $app:$app $final_path
|
# chown -R $app:$app $final_path
|
||||||
#chmod o-rwx $final_path
|
# #chmod o-rwx $final_path
|
||||||
chmod 600 $final_path/.env
|
# chmod 600 $final_path/.env
|
||||||
|
|
||||||
|
chown -R root:root $final_path
|
||||||
|
chmod o-rwx $final_path
|
||||||
|
chown -R www-data:www-data $final_path/writable
|
||||||
|
chown -R www-data:www-data $final_path/public/media
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE PHP-FPM CONFIGURATION
|
# RESTORE THE PHP-FPM CONFIGURATION
|
||||||
|
|
|
@ -107,10 +107,15 @@ ynh_add_fpm_config --package="$extra_php_dependencies"
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions to app files
|
# # Set permissions to app files
|
||||||
chown -R $app:$app $final_path
|
# chown -R $app:$app $final_path
|
||||||
#chmod o-rwx $final_path
|
# #chmod o-rwx $final_path
|
||||||
chmod 600 $final_path/.env
|
# chmod 600 $final_path/.env
|
||||||
|
|
||||||
|
chown -R root:root $final_path
|
||||||
|
chmod o-rwx $final_path
|
||||||
|
chown -R www-data:www-data $final_path/writable
|
||||||
|
chown -R www-data:www-data $final_path/public/media
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
|
|
Loading…
Add table
Reference in a new issue