mirror of
https://github.com/YunoHost-Apps/coin_ynh.git
synced 2024-09-03 18:16:26 +02:00
[fix] Permissions issue
This commit is contained in:
parent
b19793db1e
commit
e9586ddff1
3 changed files with 5 additions and 3 deletions
|
@ -186,7 +186,7 @@ ynh_add_systemd_config
|
|||
### that really need such authorization.
|
||||
|
||||
# Set permissions to app files
|
||||
chown -R root: $final_path
|
||||
chown -R $app:www-data $final_path
|
||||
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -78,7 +78,7 @@ ynh_system_user_create --username=$app
|
|||
#=================================================
|
||||
|
||||
# Restore permissions on app files
|
||||
chown -R root: $final_path
|
||||
chown -R $app:www-data $final_path
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC RESTORATION
|
||||
|
|
|
@ -26,6 +26,8 @@ export secret=$(ynh_app_setting_get --app=$app --key=secret)
|
|||
export is_public=$(ynh_app_setting_get --app=$app --key=is_public)
|
||||
export final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
export db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||
export db_user=$db_name
|
||||
export db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
|
@ -185,7 +187,7 @@ ynh_add_systemd_config
|
|||
#=================================================
|
||||
|
||||
# Set permissions on app files
|
||||
chown -R root: $final_path
|
||||
chown -R $app:www-data $final_path
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
|
|
Loading…
Reference in a new issue