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

corrected directory references

This commit is contained in:
SolAZDev 2024-01-16 15:40:29 -04:00
parent 1b5bb83821
commit 63c5d54a2e
5 changed files with 16 additions and 7 deletions

View file

@ -1,11 +1,11 @@
# path to the configuration directory (must be writable by motionEye) # path to the configuration directory (must be writable by motionEye)
conf_path /var/www/__APP__ conf_path __INSTALL_DIR__
# 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 /var/www/__APP__/run run_path __INSTALL_DIR__/run
# path to the directory where log files go (must be writable by motionEye) # path to the directory where log files go (must be writable by motionEye)
log_path __DATA_DIR__/logs log_path __INSTALL_DIR__/logs
# default output path for media files (must be writable by motionEye) # default output path for media files (must be writable by motionEye)
media_path __DATA_DIR__/media media_path __DATA_DIR__/media

View file

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

View file

@ -23,7 +23,7 @@ multi_instance = true
ldap = false ldap = false
sso = true sso = true
disk = "500M" disk = "500M"
ram.build = "256M" ram.build = "512M"
ram.runtime = "1024M" ram.runtime = "1024M"
[install] [install]
@ -54,13 +54,14 @@ ram.runtime = "1024M"
sha256 = "4eb191029a142f11f4c30cf558e2552ea4b9d659aee54cb65a5e7e4f6f56bd11" sha256 = "4eb191029a142f11f4c30cf558e2552ea4b9d659aee54cb65a5e7e4f6f56bd11"
extract = false extract = false
rename = "source.tar.gz" rename = "source.tar.gz"
# autoupdate.strategy = "latest_github_release"
[resources.system_user] [resources.system_user]
[resources.install_dir] [resources.install_dir]
[resources.data_dir] [resources.data_dir]
subdirs = ["logs", "media"] subdirs = ["media"]
[resources.permissions] [resources.permissions]
main.url = "/" main.url = "/"

View file

@ -60,6 +60,10 @@ popd
mkdir -p $install_dir/run mkdir -p $install_dir/run
chown $app:$app $install_dir/run chown $app:$app $install_dir/run
chmod 664 $install_dir/run chmod 664 $install_dir/run
# logs dir
mkdir -p $install_dir/logs
chown $app:$app $install_dir/logs
chmod 664 $install_dir/logs
#================================================= #=================================================
# APP INITIAL CONFIGURATION # APP INITIAL CONFIGURATION

View file

@ -29,6 +29,10 @@ popd
mkdir -p $install_dir/run mkdir -p $install_dir/run
chown $app:$app $install_dir/run chown $app:$app $install_dir/run
chmod 664 $install_dir/run chmod 664 $install_dir/run
# logs dir
mkdir -p $install_dir/logs
chown $app:$app $install_dir/logs
chmod 664 $install_dir/logs
#================================================= #=================================================
# RESTORE THE DATA DIRECTORY # RESTORE THE DATA DIRECTORY