mirror of
https://github.com/YunoHost-Apps/flohmarkt_ynh.git
synced 2024-09-03 18:36:30 +02:00
…
This commit is contained in:
parent
ab39e9de19
commit
1f364df09b
1 changed files with 4 additions and 3 deletions
|
@ -39,12 +39,13 @@ ynh_script_progression --message="Adding a configuration file..." --weight=2
|
|||
# customize couchdb config
|
||||
ynh_add_config --template="../conf/couch_ynh.ini" --destination="/opt/couchdb/etc/local.d/couch_ynh.ini"
|
||||
|
||||
# @@ todo need to create a couchdb user and set the files to be readable/executable by it
|
||||
chmod 750 "$install_dir"
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R "$app:$app" "$install_dir"
|
||||
|
||||
# get flohmarkt
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
ynh_setup_source --dest_dir="$install_dir/flohmarkt.git/"
|
||||
|
||||
# setup python environment for flohmarkt
|
||||
ynh_secure_remove "$install_dir/venv"
|
||||
|
@ -56,8 +57,8 @@ python3 -m venv --without-pip "$install_dir/venv"
|
|||
source "$install_dir/venv/bin/activate"
|
||||
set -o nounset
|
||||
set -x
|
||||
ynh_exec_as $app $data_dir/venv/bin/python3 -m ensurepip
|
||||
ynh_exec_as $app $data_dir/venv/bin/pip3 install -r "$install_dir/flohmarkt/requirements.txt"
|
||||
ynh_exec_as $app $install_dir/venv/bin/python3 -m ensurepip
|
||||
ynh_exec_as $app $install_dir/venv/bin/pip3 install -r "$install_dir/flohmarkt.git/requirements.txt"
|
||||
)
|
||||
|
||||
# @@ configure
|
||||
|
|
Loading…
Add table
Reference in a new issue