1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kodi_ynh.git synced 2024-09-03 19:26:34 +02:00

Manage permissions

This commit is contained in:
yalh76 2021-08-31 19:29:14 +02:00
parent da8a71a1e7
commit c993bea73f
3 changed files with 9 additions and 3 deletions

View file

@ -159,7 +159,9 @@ fi
ynh_script_progression --message="Securing files and directories..." ynh_script_progression --message="Securing files and directories..."
# Set permissions to app files # Set permissions to app files
chown -R $app:$app $final_path chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:$app "$final_path"
usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,netdev "$app" usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,netdev "$app"
#================================================= #=================================================

View file

@ -138,7 +138,9 @@ ynh_replace_string "allowed_users=console" "allowed_users=anybody" /etc/X11/Xwra
ynh_script_progression --message="Restoring user rights..." ynh_script_progression --message="Restoring user rights..."
# Restore permissions on app files # Restore permissions on app files
chown -R $app:$app $final_path chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:$app "$final_path"
usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,netdev "$app" usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,netdev "$app"
#================================================= #=================================================

View file

@ -140,7 +140,9 @@ ynh_add_systemd_config
ynh_script_progression --message="Securing files and directories..." ynh_script_progression --message="Securing files and directories..."
# Set permissions on app files # Set permissions on app files
chown -R $app:$app $final_path chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:$app "$final_path"
usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,netdev "$app" usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,netdev "$app"
#================================================= #=================================================