mirror of
https://github.com/YunoHost-Apps/motioneye_ynh.git
synced 2024-09-03 19:46:09 +02:00
changed install and data dir references
This commit is contained in:
parent
04217efe59
commit
22813092a2
3 changed files with 5 additions and 5 deletions
|
@ -5,10 +5,10 @@ conf_path /etc/motioneye
|
|||
run_path /run/motioneye
|
||||
|
||||
# path to the directory where log files go (must be writable by motionEye)
|
||||
log_path /var/log/motioneye
|
||||
log_path __DATA_DIR__/logs
|
||||
|
||||
# default output path for media files (must be writable by motionEye)
|
||||
media_path /var/lib/motioneye
|
||||
media_path __DATA_DIR__/media
|
||||
|
||||
# the log level (use quiet, error, warning, info or debug)
|
||||
log_level info
|
||||
|
|
|
@ -4,7 +4,7 @@ location __PATH__/ {
|
|||
# Path to source
|
||||
alias __INSTALL_DIR__/;
|
||||
proxy_pass http://localhost:8765;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header Host $host;
|
||||
more_set_headers "X-Frame-Options: ALLOWALL";
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
|
|
|
@ -134,7 +134,7 @@ 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"
|
||||
ynh_add_config --template="../conf/motioneye.conf" --destination="etc/motioneye/motioneye.conf"
|
||||
|
||||
# FIXME: this should be handled by the core in the future
|
||||
# You may need to use chmod 600 instead of 400,
|
||||
|
@ -169,7 +169,7 @@ chown $app:$app "/var/lib/motioneye"
|
|||
ynh_script_progression --message="Installing python dependencies..." --weight=1
|
||||
|
||||
|
||||
pushd /var/www/motionEye
|
||||
pushd $install_dir
|
||||
python3 -m venv venv
|
||||
venv/bin/pip install --upgrade pip
|
||||
venv/bin/pip install dev.tar.gz
|
||||
|
|
Loading…
Add table
Reference in a new issue