From 4f8bb19cf071d9d01ca6b9470b90aff2a5f56cee Mon Sep 17 00:00:00 2001 From: Keyinator Date: Mon, 6 Mar 2023 02:38:26 +0100 Subject: [PATCH] Switch pct exec from using /bin/sh to /bin/bash Since bash supports advanced features. Fixes the following issue: ``cannot set lc_ctype to default locale no such file or directory`` --- lxc-exec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxc-exec b/lxc-exec index 8dc8237..914875e 100755 --- a/lxc-exec +++ b/lxc-exec @@ -6,7 +6,7 @@ if [[ $1 =~ ^[0-9]*$ ]]; then shift COMMAND=$@ echo -ne "\e[1;32mexecuting \"$COMMAND\" in container #${CONTAINER} ($(grep -m 1 hostname /etc/pve/lxc/${CONTAINER}.conf | awk '{print $NF}'))\e[0m\n" - pct exec $CONTAINER /bin/sh -- -c "$COMMAND" + pct exec $CONTAINER /bin/bash -- -c "$COMMAND" else echo -ne "\e[1;31mcontainer $1 is not running\e[0m\n" exit 1