[GH-ISSUE #198] Fix config file sourcing in wiki #1646

Closed
opened 2026-03-01 17:52:31 +03:00 by kerem · 1 comment
Owner

Originally created by @kylebarron on GitHub (Mar 27, 2019).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/198

Describe the bug

I don't know how to make a PR against the wiki, so I'm creating a bug report instead. To source the config file it should be

export $(grep -v '^#' ~/.ArchiveBox.conf | xargs); 

not

export "$(grep -v '^#' ~/.ArchiveBox.conf | xargs)"; 

Steps to reproduce

When I run

export "$(grep -v '^#' ~/.ArchiveBox.conf | xargs)"; 

I get the whole configuration put into a single environment variable. When running env I get the following all in a single line.

OUTPUT_DIR=/home/kyle/sftp_sync/archive ONLY_NEW=False FETCH_TITLE=True FETCH_FAVICON=True FETCH_WGET=True FETCH_WARC=False FETCH_PDF=False FETCH_SCREENSHOT=False FETCH_DOM=True FETCH_GIT=False FETCH_MEDIA=False SUBMIT_ARCHIVE_DOT_ORG=False

archive then used everything after OUTPUT_DIR= for the output directory.

Instead, without the quotes around grep means that the config is split correctly.

I'm using Zsh.

Software versions

  • OS: Ubuntu 18.04
  • ArchiveBox version: e797a7a
  • Python version: 3.7.1
Originally created by @kylebarron on GitHub (Mar 27, 2019). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/198 ## Describe the bug I don't know how to make a PR against the wiki, so I'm creating a bug report instead. To source the config file it should be ``` export $(grep -v '^#' ~/.ArchiveBox.conf | xargs); ``` not ``` export "$(grep -v '^#' ~/.ArchiveBox.conf | xargs)"; ``` ## Steps to reproduce When I run ``` export "$(grep -v '^#' ~/.ArchiveBox.conf | xargs)"; ``` I get the whole configuration put into a single environment variable. When running `env` I get the following all in a single line. ``` OUTPUT_DIR=/home/kyle/sftp_sync/archive ONLY_NEW=False FETCH_TITLE=True FETCH_FAVICON=True FETCH_WGET=True FETCH_WARC=False FETCH_PDF=False FETCH_SCREENSHOT=False FETCH_DOM=True FETCH_GIT=False FETCH_MEDIA=False SUBMIT_ARCHIVE_DOT_ORG=False ``` `archive` then used everything after `OUTPUT_DIR=` for the output directory. Instead, without the quotes around `grep` means that the config is split correctly. I'm using Zsh. ## Software versions - OS: Ubuntu 18.04 - ArchiveBox version: e797a7a - Python version: 3.7.1
kerem closed this issue 2026-03-01 17:52:31 +03:00
Author
Owner

@pirate commented on GitHub (Mar 28, 2019):

You're right, thanks, just fixed it fixed now.

(FYI I'm removing that entire section the moment v0.3.0 lands. We're moving to using an enforced config file in the archive folder root instead of the hacky homebrew .env + xargs solution.)

<!-- gh-comment-id:477680225 --> @pirate commented on GitHub (Mar 28, 2019): You're right, thanks, just fixed it fixed now. (FYI I'm removing that entire section the moment [v0.3.0](https://github.com/pirate/ArchiveBox/pull/197) lands. We're moving to using an enforced config file in the archive folder root instead of the hacky homebrew .env + xargs solution.)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#1646
No description provided.