DeMiro5001 7 miesięcy temu
rodzic
commit
8494c369ce
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      scripts/install

+ 3 - 1
scripts/install

@@ -24,9 +24,11 @@ chown -R "$app:www-data" "$install_dir"
 
 pushd $install_dir
  ynh_exec_as_app $install_dir/python3 -m venv venv
- echo "source $install_dir/.venv/bin/activate" >> $install_dir/.bashrc
+ echo "source $install_dir/venv/bin/activate" >> $install_dir/.bashrc
+ source "$install_dir/venv/bin/activate"
  ynh_exec_as_app $install_dir/pip install open-webui
  ynh_exec_as_app open-webui serve
+ deactivate
 popd
 
 chown -R "$app:www-data" "$install_dir"