1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodered_ynh.git synced 2024-09-03 19:46:25 +02:00

Fix files permissions

This commit is contained in:
tituspijean 2021-06-07 23:13:39 +02:00
parent fdad61382d
commit bb7737cacc
3 changed files with 9 additions and 9 deletions

View file

@ -93,8 +93,6 @@ ynh_system_user_create --username=$app --home_dir=$final_path
#=================================================
ynh_script_progression --message="Installing Node-RED..." --weight=2
chown -R $app: $final_path
ynh_use_nodejs
pushd $final_path
@ -133,8 +131,9 @@ ynh_add_systemd_config
#=================================================
# Set permissions to app files
chown -R root:root $final_path
chown -R $app: $final_path/data
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app: "$final_path"
#=================================================
# SETUP LOGROTATE

View file

@ -65,7 +65,9 @@ ynh_system_user_create --username=$app --home_dir=$final_path
#=================================================
# Restore permissions on app files
chown -R $app: $final_path
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app: "$final_path"
# Create log directory and apply permissions
mkdir -p /var/log/$app

View file

@ -125,9 +125,6 @@ ynh_system_user_create --username=$app --home_dir=$final_path
#=================================================
ynh_script_progression --message="Installing Node-RED..." --weight=30
chown -R root:root $final_path
chown -R $app: $final_path/data
ynh_use_nodejs
pushd $final_path
@ -173,7 +170,9 @@ ynh_add_systemd_config
#=================================================
# Set permissions on app files
chown -R $app: $final_path
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app: "$final_path"
#=================================================
# ADVERTISE SERVICE IN ADMIN PANEL