mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-10-17 10:22:17 +00:00
build: allow to execute command from container from entrypoint
This commit is contained in:
1 parent
c4a56f1454
commit
7c7804a9f4
3 files changed
+5
-2
No files matched your search
@@ -57,6 +57,9 @@ ahriman "${AHRIMAN_DEFAULT_ARGS[@]}" service-setup "${AHRIMAN_SETUP_ARGS[@]}"
|
||||
# create machine-id which is required by build tools
|
||||
systemd-machine-id-setup &> /dev/null
|
||||
|
||||
# special workaround to emulate /bin/bash entrypoint if first argument starts with /
|
||||
[[ "$1" =~ ^/.* ]] && exec "$@"
|
||||
|
||||
# if AHRIMAN_FORCE_ROOT is set or command is unsafe we can run without sudo
|
||||
# otherwise we prepend executable by sudo command
|
||||
if [ -n "$AHRIMAN_FORCE_ROOT" ]; then
|
||||
|
||||
Reference in new issue
Block a user