1
0
Fork 0
mirror of synced 2024-06-18 18:34:51 +12:00

get setup.sh to run on FreeBSD again (13.x)

This commit is contained in:
Matthew West 2022-12-25 17:36:01 +00:00 committed by GitHub
parent e114b1f6dc
commit 86208c0267
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,12 +132,13 @@ elif which brew > /dev/null; then
echo "[+] Installing ArchiveBox python dependencies using pip3..." echo "[+] Installing ArchiveBox python dependencies using pip3..."
python3 -m pip install --upgrade --ignore-installed archivebox python3 -m pip install --upgrade --ignore-installed archivebox
elif which pkg > /dev/null; then elif which pkg > /dev/null; then
echo "[+] Installing ArchiveBox system dependencies using pkg and pip37 (python3.7)..." echo "[+] Installing ArchiveBox system dependencies using pkg and pip (python3.9)..."
sudo pkg install -y python37 py37-pip py37-sqlite3 node npm wget curl youtube_dl ffmpeg git ripgrep sudo pkg install -y python3 py39-pip py39-sqlite3 npm wget curl youtube_dl ffmpeg git ripgrep
sudo pkg install -y chromium sudo pkg install -y chromium
echo "" echo ""
echo "[+] Installing ArchiveBox python dependencies using pip37..." echo "[+] Installing ArchiveBox python dependencies using pip..."
sudo python3 -m pip install --upgrade --ignore-installed archivebox # don't use sudo here so that pip installs in $HOME/.local instead of into /usr/local
python3 -m pip install --upgrade --ignore-installed archivebox
else else
echo "[!] Warning: Could not find aptitude/homebrew/pkg! May not be able to install all dependencies automatically." echo "[!] Warning: Could not find aptitude/homebrew/pkg! May not be able to install all dependencies automatically."
echo "" echo ""
@ -191,7 +192,7 @@ echo "[√] Server started on http://0.0.0.0:8000 and data directory initialized
echo " cd ~/archivebox" echo " cd ~/archivebox"
echo " ps aux | grep archivebox" echo " ps aux | grep archivebox"
echo " pkill -f archivebox" echo " pkill -f archivebox"
echo " pip3 install --upgrade archivebox" echo " python3 -m pip install --upgrade archivebox"
echo " archivebox server --quick-init 0.0.0.0:8000" echo " archivebox server --quick-init 0.0.0.0:8000"
echo " archivebox manage createsuperuser" echo " archivebox manage createsuperuser"
echo " archivebox add 'https://example.com'" echo " archivebox add 'https://example.com'"