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:
parent
1b5bb83821
commit
63c5d54a2e
5 changed files with 16 additions and 7 deletions
|
@ -1,11 +1,11 @@
|
|||
# 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)
|
||||
run_path /var/www/__APP__/run
|
||||
run_path __INSTALL_DIR__/run
|
||||
|
||||
# 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)
|
||||
media_path __DATA_DIR__/media
|
||||
|
|
|
@ -7,8 +7,8 @@ Type=simple
|
|||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=__INSTALL_DIR__/venv
|
||||
ExecStart=__INSTALL_DIR__/venv/bin/meyectl startserver -c /var/www/__APP__/motioneye.conf
|
||||
StandardOutput=append:/var/log/__APP__/__APP__.log
|
||||
ExecStart=__INSTALL_DIR__/venv/bin/meyectl startserver -c __INSTALL_DIR__/motioneye.conf
|
||||
StandardOutput=append:__INSTALL_DIR__/__APP__.log
|
||||
StandardError=inherit
|
||||
Restart=on-abort
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ multi_instance = true
|
|||
ldap = false
|
||||
sso = true
|
||||
disk = "500M"
|
||||
ram.build = "256M"
|
||||
ram.build = "512M"
|
||||
ram.runtime = "1024M"
|
||||
|
||||
[install]
|
||||
|
@ -54,13 +54,14 @@ ram.runtime = "1024M"
|
|||
sha256 = "4eb191029a142f11f4c30cf558e2552ea4b9d659aee54cb65a5e7e4f6f56bd11"
|
||||
extract = false
|
||||
rename = "source.tar.gz"
|
||||
# autoupdate.strategy = "latest_github_release"
|
||||
|
||||
[resources.system_user]
|
||||
|
||||
[resources.install_dir]
|
||||
|
||||
[resources.data_dir]
|
||||
subdirs = ["logs", "media"]
|
||||
subdirs = ["media"]
|
||||
|
||||
[resources.permissions]
|
||||
main.url = "/"
|
||||
|
|
|
@ -60,6 +60,10 @@ popd
|
|||
mkdir -p $install_dir/run
|
||||
chown $app:$app $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
|
||||
|
|
|
@ -29,6 +29,10 @@ popd
|
|||
mkdir -p $install_dir/run
|
||||
chown $app:$app $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
|
||||
|
|
Loading…
Add table
Reference in a new issue