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

clean up?

This commit is contained in:
SolAZDev 2024-01-15 20:25:20 -04:00
parent babb9d7c18
commit f5928c13d8
3 changed files with 5 additions and 18 deletions

View file

@ -1,5 +1,5 @@
# path to the configuration directory (must be writable by motionEye) # path to the configuration directory (must be writable by motionEye)
conf_path /etc/motioneye conf_path /var/www/__APP__
# path to the directory where pid files go (must be writable by motionEye) # path to the directory where pid files go (must be writable by motionEye)
run_path /run/motioneye run_path /run/motioneye

View file

@ -6,8 +6,8 @@ After=network.target
Type=simple Type=simple
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
WorkingDirectory=__INSTALL_DIR__/venv WorkingDirectory=__INSTALL_DIR__/
ExecStart=__INSTALL_DIR__/venv/bin/meyectl startserver -c /etc/motioneye/motioneye.conf ExecStart=__INSTALL_DIR__/bin/meyectl startserver -c /var/www/__APP__/motioneye.conf
StandardOutput=append:/var/log/__APP__/__APP__.log StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=inherit StandardError=inherit
Restart=on-abort Restart=on-abort

View file

@ -44,13 +44,7 @@ ynh_use_logrotate
#================================================= #=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_script_progression --message="Adding a configuration file..." --weight=1
mkdir -p /etc/motioneye ynh_add_config --template="../conf/motioneye.conf" --destination="/var/www/__APP__/motioneye.conf"
mkdir -p /var/lib/motioneye
ynh_add_config --template="../conf/motioneye.conf" --destination="/etc/motioneye/motioneye.conf"
chmod 664 "/etc/motioneye/motioneye.conf"
chown $app:$app "/etc/motioneye/motioneye.conf"
#================================================= #=================================================
# SETUP APPLICATION # SETUP APPLICATION
#================================================= #=================================================
@ -69,14 +63,7 @@ popd
#================================================= #=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_script_progression --message="Adding a configuration file..." --weight=1
mkdir -p /etc/motioneye ynh_add_config --template="../conf/motioneye.conf" --destination="/var/www/__APP__/motioneye.conf"
mkdir -p /var/lib/motioneye
ynh_add_config --template="../conf/motioneye.conf" --destination="/etc/motioneye/motioneye.conf"
chown $app:$app "/etc/motioneye/"
chown $app:$app "/var/lib/motioneye"
chmod 664 "/etc/motioneye/"
chmod 664 "/var/lib/motioneye"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION