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

install: changed permissions

This commit is contained in:
SolAZDev 2023-09-06 12:47:34 -04:00
parent 1aea3d67cc
commit 30095d135e

View file

@ -110,9 +110,6 @@ yunohost service add $app --description="motionEye server for YunoHost" --log="/
# Use logrotate to manage application logfile(s) # Use logrotate to manage application logfile(s)
ynh_use_logrotate ynh_use_logrotate
# Create a dedicated Fail2Ban config
# ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login"
#================================================= #=================================================
# APP INITIAL CONFIGURATION # APP INITIAL CONFIGURATION
#================================================= #=================================================
@ -139,9 +136,12 @@ ynh_add_config --template="../conf/motioneye.conf" --destination="/etc/motioneye
# FIXME: this should be handled by the core in the future # FIXME: this should be handled by the core in the future
# You may need to use chmod 600 instead of 400, # 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 # for example if the app is expected to be able to modify its own config
chmod 400 "/etc/motioneye/motioneye.conf" chmod 660 "/etc/motioneye/motioneye.conf"
chown $app:$app "/etc/motioneye/motioneye.conf" chmod 660 "/etc/motioneye/"
chown $app:$app "/var/lib/motioneye" chmod 660 "/var/lib/motioneye"
chown $app:www-data "/etc/motioneye/"
chown $app:www-data "/etc/motioneye/motioneye.conf"
chown $app:www-data "/var/lib/motioneye"
### For more complex cases where you want to replace stuff using regexes, ### 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) ### you shoud rely on ynh_replace_string (which is basically a wrapper for sed)