diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-09 01:09:26 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-09 01:09:26 +0300 |
commit | 1a572d674b2c94bbe5b094f563c4875c77575227 (patch) | |
tree | 1bcfe25742778bc6fc3e6c2afe48dcb8831265ec | |
parent | d87f068afea828ecec6b56269a9134f7eaf70b11 (diff) | |
download | arching-kaos-tools-1a572d674b2c94bbe5b094f563c4875c77575227.tar.gz arching-kaos-tools-1a572d674b2c94bbe5b094f563c4875c77575227.tar.bz2 arching-kaos-tools-1a572d674b2c94bbe5b094f563c4875c77575227.zip |
bugfix
-rw-r--r-- | ContainerFile | 2 | ||||
-rwxr-xr-x | bin/ak-startup | 5 | ||||
-rwxr-xr-x | full_test_with_podman.sh | 1 |
3 files changed, 6 insertions, 2 deletions
diff --git a/ContainerFile b/ContainerFile index 28cd338..fd7d085 100644 --- a/ContainerFile +++ b/ContainerFile @@ -10,6 +10,6 @@ EXPOSE 4001/tcp EXPOSE 5001/tcp EXPOSE 8080/tcp EXPOSE 8610/tcp -ENTRYPOINT ["/root/.arching-kaos/bin/ak-startup"] +ENTRYPOINT ["/root/.arching-kaos/bin/ak-startup", "--podman"] diff --git a/bin/ak-startup b/bin/ak-startup index bd1d582..7a67e58 100755 --- a/bin/ak-startup +++ b/bin/ak-startup @@ -6,4 +6,7 @@ ak-ipfs-starter ak-log-rotate # screen -dmS akdaemon ak-daemon > $AK_WORKDIR/akd.log 2>&1 & printf '%s' "$!" > $AK_WORKDIR/akd.pid -# ak-logfollow +if [ ! -z $1 ] && [ -n "$1" ] && [ "$1" == "--podman" ] +then + ak log follow +fi diff --git a/full_test_with_podman.sh b/full_test_with_podman.sh index 4412041..3d30acb 100755 --- a/full_test_with_podman.sh +++ b/full_test_with_podman.sh @@ -7,6 +7,7 @@ then container="akt-test-$name" podman run --name $container -d $tag podman exec -it $container bash + podman container stop $container podman container rm $container else echo "Provide one of the following distros as an argument to work with" |