Update archivebox-install.sh
This commit is contained in:
parent
506ce07bf4
commit
b080c94add
@ -25,21 +25,17 @@ $STD apt-get install -y \
|
|||||||
ripgrep
|
ripgrep
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
PYTHON_VERSION="3.12" setup_uv
|
||||||
NODE_VERSION="22" install_node_and_modules
|
NODE_VERSION="22" install_node_and_modules
|
||||||
|
|
||||||
msg_info "Installing ArchiveBox Python Environment"
|
msg_info "Installing ArchiveBox"
|
||||||
mkdir -p /opt/archivebox/{data,.npm,.cache,.local}
|
mkdir -p /opt/archivebox/{data,.npm,.cache,.local}
|
||||||
adduser --system --shell /bin/bash --gecos 'Archive Box User' --group --disabled-password --home /home/archivebox archivebox
|
adduser --system --shell /bin/bash --gecos 'Archive Box User' --group --disabled-password --home /home/archivebox archivebox
|
||||||
chown -R archivebox:archivebox /opt/archivebox/{data,.npm,.cache,.local}
|
chown -R archivebox:archivebox /opt/archivebox/{data,.npm,.cache,.local}
|
||||||
chmod -R 755 /opt/archivebox/data
|
chmod -R 755 /opt/archivebox/data
|
||||||
|
$STD uv venv --python "$PYTHON_VERSION" /opt/archivebox/.venv
|
||||||
cd /opt/archivebox
|
$STD /opt/archivebox/.venv/bin/uv pip install --all-extras archivebox
|
||||||
PYTHON_VERSION="3.12" setup_uv
|
$STD /opt/archivebox/.venv/bin/uv pip install playwright
|
||||||
|
|
||||||
msg_info "Installing ArchiveBox & Playwright (Patience)"
|
|
||||||
cd /opt/archivebox/data
|
|
||||||
cp /opt/archivebox/uv.lock . || true
|
|
||||||
$STD /opt/archivebox/.venv/bin/uv sync
|
|
||||||
sudo -u archivebox /opt/archivebox/.venv/bin/playwright install-deps chromium
|
sudo -u archivebox /opt/archivebox/.venv/bin/playwright install-deps chromium
|
||||||
msg_ok "Installed ArchiveBox & Playwright"
|
msg_ok "Installed ArchiveBox & Playwright"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user