mirror of
https://github.com/YunoHost-Apps/castopod_ynh.git
synced 2024-09-03 18:16:14 +02:00
add permissions
This commit is contained in:
parent
2fe45ced10
commit
d469329a0e
3 changed files with 6 additions and 0 deletions
|
@ -138,6 +138,8 @@ ynh_permission_update --permission="main" --remove="visitors"
|
|||
|
||||
# Set permissions to app files
|
||||
chown -R $app:$app $final_path
|
||||
chown -R www-data:www-data $final_path/writable
|
||||
chown -R www-data:www-data $final_path/public/media
|
||||
chmod 600 $final_path/.env
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -73,6 +73,8 @@ ynh_restore_file --origin_path="$final_path"
|
|||
|
||||
# Set permissions to app files
|
||||
chown -R $app:$app $final_path
|
||||
chown -R www-data:www-data $final_path/writable
|
||||
chown -R www-data:www-data $final_path/public/media
|
||||
chmod 600 $final_path/.env
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -126,6 +126,8 @@ ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
|
|||
|
||||
# Set permissions to app files
|
||||
chown -R $app:$app $final_path
|
||||
chown -R www-data:www-data $final_path/writable
|
||||
chown -R www-data:www-data $final_path/public/media
|
||||
chmod 600 $final_path/.env
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue