From 1a572d674b2c94bbe5b094f563c4875c77575227 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 9 Jun 2024 01:09:26 +0300 Subject: bugfix --- ContainerFile | 2 +- bin/ak-startup | 5 ++++- 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" -- cgit v1.2.3