From 1f364df09bd2562b27ab4a8c8c7641bef40b2868 Mon Sep 17 00:00:00 2001 From: Chris Vogel Date: Wed, 10 Apr 2024 15:10:22 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index db3e3ae..09d207d 100755 --- a/scripts/install +++ b/scripts/install @@ -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