mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
no-pipx
This commit is contained in:
parent
92fd9a47ae
commit
55a5bb8830
1 changed files with 8 additions and 5 deletions
|
@ -68,13 +68,16 @@
|
|||
- name: If Calibre-Web is being enhanced with audio/video "books" too, install/upgrade additional prereqs -- SEE https://github.com/iiab/calibre-web/wiki
|
||||
shell: |
|
||||
if [ -f {{ calibreweb_venv_path }}/scripts/lb-wrapper ]; then
|
||||
apt install ffmpeg pipx -y
|
||||
apt install -y ffmpeg
|
||||
if lb --version; then
|
||||
pipx upgrade --include-injected xklb
|
||||
cd /usr/local/xklb
|
||||
bin/pip install --upgrade
|
||||
else
|
||||
pipx install xklb
|
||||
ln -sf /root/.local/bin/lb /usr/local/bin/lb
|
||||
ln -sf /root/.local/share/pipx/venvs/xklb/bin/yt-dlp /usr/local/bin/yt-dlp
|
||||
python3 -m venv /usr/local/xklb
|
||||
cd /usr/local/xklb
|
||||
bin/pip install xklb
|
||||
ln -sf /usr/local/xklb/bin/lb /usr/local/bin/lb
|
||||
ln -sf /usr/local/xklb/share/pipx/venvs/xklb/bin/yt-dlp /usr/local/bin/yt-dlp
|
||||
fi
|
||||
cp {{ calibreweb_venv_path }}/scripts/lb-wrapper /usr/local/bin/
|
||||
chmod a+x /usr/local/bin/lb-wrapper
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue