From a298978356db05ab37248e4a6ce61a40c4e8a4fb Mon Sep 17 00:00:00 2001 From: Felix Freeman Date: Fri, 18 Feb 2022 12:44:42 -0300 Subject: [PATCH] Fix: hardcoded nginx instance --- lxd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd.sh b/lxd.sh index e65084d..1057531 100755 --- a/lxd.sh +++ b/lxd.sh @@ -55,7 +55,7 @@ if [ -d "src/" ]; then lxc config device add "$DECIDIM_INSTANCE" src disk source="$(pwd)/src" path="/opt/$DECIDIM_INSTANCE/src" if [ "$DECIDIM_INSTANCE" != "$NGINX_INSTANCE" ]; then echo "Adding src/public/ 'disk' to $NGINX_INSTANCE" - lxc exec nginx -- addgroup -S nginx + lxc exec "$NGINX_INSTANCE" -- addgroup -S nginx NGINX_GROUP_ID="$(lxc exec nginx -- getent group nginx | awk -F : '{print $3}')" # nobody user and nginx group should grant read-only permissions printf "gid $(id -g) $NGINX_GROUP_ID" | lxc config set "$NGINX_INSTANCE" raw.idmap - -- 2.45.2