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

Installation finalization

This commit is contained in:
Jean-Baptiste Holcroft 2018-04-14 23:11:53 +02:00
parent 769f39a3b2
commit b28b31c280
2 changed files with 17 additions and 18 deletions

View file

@ -48,7 +48,7 @@ python_exec=
; Overridden by the KRESUS_WEBOOB_DIR environment variable, if it's set.
; Example:
; srcdir=/home/ben/code/weboob
srcdir=
srcdir=__FINALPATH__/venv/bin/
; Path to a file containing a valid Weboob's source list directory.
; Can be removed; defaults to "", indicating that Kresus will generate its own

View file

@ -96,24 +96,15 @@ ynh_install_nodejs 8
# Install weboob with pip
#=================================================
# TODO: use virtualenv
# virtualenv "${final_path}/venv"
# (
# set +o nounset
# source "${final_path}/venv/bin/activate"
# set -o nounset
virtualenv "${final_path}/venv"
(
set +o nounset
source "${final_path}/venv/bin/activate"
set -o nounset
# pip install --upgrade pip
# )
pip install weboob
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions to app files
# chown -R $app: $final_path
pip install --upgrade pip
pip install weboob
)
#=================================================
# Install Kresus with npm
@ -151,6 +142,14 @@ ynh_replace_string "__NODEPATH__" "$(dirname "$nodejs_path")" ../conf/systemd.se
# Create a dedicated systemd config
ynh_add_systemd_config
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions to app files
chown -R $app: $final_path
chmod 600 "$final_path/config.ini"
#=================================================
# RELOAD NGINX
#=================================================