mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
try docker in setup script before anything else
This commit is contained in:
parent
77e5560762
commit
0624ac5a74
1 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,14 @@
|
||||||
# Usage:
|
# Usage:
|
||||||
# curl 'https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/dev/bin/setup.sh' | sh
|
# curl 'https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/dev/bin/setup.sh' | sh
|
||||||
|
|
||||||
|
if (which docker > /dev/null && docker pull archivebox/archivebox); then
|
||||||
|
echo "[+] Initializing an ArchiveBox data folder at ~/archivebox using Docker..."
|
||||||
|
mkdir -p ~/archivebox
|
||||||
|
cd ~/archivebox
|
||||||
|
docker run -v "$PWD":/data -it archivebox init --setup
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
echo "[!] It's highly recommended to use Docker instead of running this script. ⚠️"
|
echo "[!] It's highly recommended to use Docker instead of running this script. ⚠️"
|
||||||
echo " Docker is safer and easier to set up, and includes everything working out-of-the-box:"
|
echo " Docker is safer and easier to set up, and includes everything working out-of-the-box:"
|
||||||
echo " https://github.com/ArchiveBox/ArchiveBox/wiki/Docker"
|
echo " https://github.com/ArchiveBox/ArchiveBox/wiki/Docker"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue