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

chown+777 (this does not feel right)

This commit is contained in:
SolAZDev 2023-09-06 13:24:48 -04:00
parent 4eda2c41fd
commit 08f4c594c6

View file

@ -136,12 +136,12 @@ ynh_add_config --template="../conf/motioneye.conf" --destination="/etc/motioneye
# FIXME: this should be handled by the core in the future
# You may need to use chmod 600 instead of 400,
# for example if the app is expected to be able to modify its own config
chmod 666 "/etc/motioneye/motioneye.conf"
chmod 666 "/etc/motioneye/"
chmod 666 "/var/lib/motioneye"
# chown $app:www-data "/etc/motioneye/"
# chown $app:www-data "/etc/motioneye/motioneye.conf"
# chown $app:www-data "/var/lib/motioneye"
chown $app:www-data "/etc/motioneye/"
chown $app:www-data "/etc/motioneye/motioneye.conf"
chown $app:www-data "/var/lib/motioneye"
chmod 777 "/etc/motioneye/motioneye.conf"
chmod 777 "/etc/motioneye/"
chmod 777 "/var/lib/motioneye"
### For more complex cases where you want to replace stuff using regexes,
### you shoud rely on ynh_replace_string (which is basically a wrapper for sed)