fix: add nixbld users as explicit group members
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 17s
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 17s
This commit is contained in:
@@ -110,8 +110,9 @@ jobs:
|
|||||||
|
|
||||||
for i in $(seq 1 10); do
|
for i in $(seq 1 10); do
|
||||||
if ! id "nixbld$i" >/dev/null 2>&1; then
|
if ! id "nixbld$i" >/dev/null 2>&1; then
|
||||||
useradd --system --gid nixbld --no-create-home --home-dir /var/empty --shell /usr/sbin/nologin "nixbld$i"
|
useradd --system --create-home --home-dir /var/empty --shell /usr/sbin/nologin "nixbld$i"
|
||||||
fi
|
fi
|
||||||
|
usermod -a -G nixbld "nixbld$i"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
sh <(curl -L https://nixos.org/nix/install) --no-daemon
|
sh <(curl -L https://nixos.org/nix/install) --no-daemon
|
||||||
|
|||||||
@@ -105,16 +105,17 @@ jobs:
|
|||||||
chown root:root /nix
|
chown root:root /nix
|
||||||
chmod 0755 /nix
|
chmod 0755 /nix
|
||||||
|
|
||||||
if ! getent group nixbld >/dev/null 2>&1; then
|
if ! getent group nixbld >/dev/null 2>&1; then
|
||||||
groupadd --system nixbld
|
groupadd --system nixbld
|
||||||
fi
|
|
||||||
|
|
||||||
for i in $(seq 1 10); do
|
|
||||||
if ! id "nixbld$i" >/dev/null 2>&1; then
|
|
||||||
useradd --system --gid nixbld --no-create-home --home-dir /var/empty --shell /usr/sbin/nologin "nixbld$i"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for i in $(seq 1 10); do
|
||||||
|
if ! id "nixbld$i" >/dev/null 2>&1; then
|
||||||
|
useradd --system --create-home --home-dir /var/empty --shell /usr/sbin/nologin "nixbld$i"
|
||||||
|
fi
|
||||||
|
usermod -a -G nixbld "nixbld$i"
|
||||||
|
done
|
||||||
|
fi
|
||||||
sh <(curl -L https://nixos.org/nix/install) --no-daemon
|
sh <(curl -L https://nixos.org/nix/install) --no-daemon
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user