mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-10-16 18:02:16 +00:00
add ability to read values from environment variables
It makes sense to read some values from environment. In particular this feature is useful in case of running application in containers in ci/cd See #108 for more details
This commit is contained in:
1 parent
573ade4ba5
commit
e3ed36fafd
5 files changed
+87
-5
No files matched your search
@@ -59,7 +59,7 @@ systemd-machine-id-setup &> /dev/null
|
||||
if [ -n "$AHRIMAN_FORCE_ROOT" ]; then
|
||||
AHRIMAN_EXECUTABLE=("ahriman")
|
||||
elif ahriman help-commands-unsafe -- "$@" &> /dev/null; then
|
||||
AHRIMAN_EXECUTABLE=("sudo" "-u" "$AHRIMAN_USER" "--" "ahriman")
|
||||
AHRIMAN_EXECUTABLE=("sudo" "-E" "-u" "$AHRIMAN_USER" "--" "ahriman")
|
||||
else
|
||||
AHRIMAN_EXECUTABLE=("ahriman")
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user