瀏覽代碼

Update install

DeMiro5001 6 月之前
父節點
當前提交
e0125e10ee
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      scripts/install

+ 3 - 3
scripts/install

@@ -23,10 +23,10 @@ ynh_setup_source --dest_dir="$install_dir"
 chown -R "$app:www-data" "$install_dir"
 
 pushd
- python3 -m venv venv
+ ynh_exec_as_app $install_dir/python3 -m venv venv
  echo "source $install_dir/.venv/bin/activate" >> $install_dir/.bashrc
- pip install open-webui
- open-webui serve
+ ynh_exec_as_app $install_dir/pip install open-webui
+ ynh_exec_as_app open-webui serve
 popd
 
 chown -R "$app:www-data" "$install_dir"