1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00
This commit is contained in:
Chris Vogel 2024-04-10 14:55:12 +02:00
parent 719fbc9f2d
commit d987dab990

View file

@ -43,12 +43,23 @@ chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir"
chown -R "$app:$app" "$install_dir"
# @@ setup python environment for flohmarkt
ynh_secure_remove "$data_dir/venv"
python3 -m venv --without-pip "$data_dir/venv"
# get flohmarkt
ynh_setup_source --dest-dir="$install_dir"
# setup python environment for flohmarkt
ynh_secure_remove "$install_dir/venv"
python3 -m venv --without-pip "$install_dir/venv"
# install python dependencies
(
set +o nounset
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"
)
# @@ get git
# @@ install python dependencies
# @@ configure
# SETUP LOGROTATE