~hacktivista/setup-decidim

a298978356db05ab37248e4a6ce61a40c4e8a4fb — Felix Freeman 1 year, 7 months ago d4bcbaf master
Fix: hardcoded nginx instance
1 files changed, 1 insertions(+), 1 deletions(-)

M lxd.sh
M lxd.sh => lxd.sh +1 -1
@@ 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 -