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:
parent
babb9d7c18
commit
f5928c13d8
3 changed files with 5 additions and 18 deletions
|
@ -1,5 +1,5 @@
|
|||
# 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)
|
||||
run_path /run/motioneye
|
||||
|
|
|
@ -6,8 +6,8 @@ After=network.target
|
|||
Type=simple
|
||||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=__INSTALL_DIR__/venv
|
||||
ExecStart=__INSTALL_DIR__/venv/bin/meyectl startserver -c /etc/motioneye/motioneye.conf
|
||||
WorkingDirectory=__INSTALL_DIR__/
|
||||
ExecStart=__INSTALL_DIR__/bin/meyectl startserver -c /var/www/__APP__/motioneye.conf
|
||||
StandardOutput=append:/var/log/__APP__/__APP__.log
|
||||
StandardError=inherit
|
||||
Restart=on-abort
|
||||
|
|
|
@ -44,13 +44,7 @@ ynh_use_logrotate
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
|
||||
mkdir -p /etc/motioneye
|
||||
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"
|
||||
|
||||
ynh_add_config --template="../conf/motioneye.conf" --destination="/var/www/__APP__/motioneye.conf"
|
||||
#=================================================
|
||||
# SETUP APPLICATION
|
||||
#=================================================
|
||||
|
@ -69,14 +63,7 @@ popd
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
|
||||
mkdir -p /etc/motioneye
|
||||
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"
|
||||
ynh_add_config --template="../conf/motioneye.conf" --destination="/var/www/__APP__/motioneye.conf"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
|
Loading…
Add table
Reference in a new issue