From 85cb7475eac9e842b8e3d9b42db24eb7b23dc891 Mon Sep 17 00:00:00 2001 From: Mario Alegre Date: Sun, 24 May 2020 23:05:44 -0500 Subject: [PATCH] bugfix launch script --- bin/pdm-launch | 9 +++++---- src/debian/assets/bash.bashrc | 1 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/pdm-launch b/bin/pdm-launch index baf9cf2..818678c 100755 --- a/bin/pdm-launch +++ b/bin/pdm-launch @@ -39,10 +39,10 @@ else fi if [[ $FLAGS_config == $FLAGS_TRUE ]]; then - echo "Getting deploy options from image metadata label \"$FLAGS_deployopts\" ..." - deployopts=$(podman image inspect -f "{{ .Config.Labels.${FLAGS_deployopts} }}" $image) + echo "Getting deploy options from image metadata label \"$FLAGS_label\" ..." + deployopts=$(podman image inspect -f "{{ .Config.Labels.${FLAGS_label} }}" $image) if [[ $deployopts == "" ]]; then - echo "Error: image metadata label \"$FLAGS_deployopts\" is empty or nonexistent." + echo "Error: image metadata label \"$FLAGS_label\" is empty or nonexistent." exit 2 fi else @@ -53,5 +53,6 @@ if [[ $FLAGS_overwrite ]]; then podman rm -i -f $name fi -podman run -itd --name $name --hostname $name --userns=keep-id $deployopts $image +podman run -itd --name $name --hostname $name $deployopts $image +# --userns=keep-id echo "Done!" diff --git a/src/debian/assets/bash.bashrc b/src/debian/assets/bash.bashrc index c666730..ceaa0f3 100644 --- a/src/debian/assets/bash.bashrc +++ b/src/debian/assets/bash.bashrc @@ -83,4 +83,3 @@ fi alias dir='ls -lFAh' alias rsyn='rsync -vaSH' -alias sudo='sudo -S'