Merge pull request 'fix: provision nixbld users for root nix install' (#42) from stage into master
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 35s
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 35s
Reviewed-on: #42
This commit was merged in pull request #42.
This commit is contained in:
@@ -103,6 +103,16 @@ jobs:
|
|||||||
mkdir -p /nix
|
mkdir -p /nix
|
||||||
chown root:root /nix
|
chown root:root /nix
|
||||||
chmod 0755 /nix
|
chmod 0755 /nix
|
||||||
|
|
||||||
|
if ! getent group nixbld >/dev/null 2>&1; then
|
||||||
|
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
|
||||||
sh <(curl -L https://nixos.org/nix/install) --no-daemon
|
sh <(curl -L https://nixos.org/nix/install) --no-daemon
|
||||||
|
|
||||||
|
|||||||
@@ -104,6 +104,16 @@ jobs:
|
|||||||
mkdir -p /nix
|
mkdir -p /nix
|
||||||
chown root:root /nix
|
chown root:root /nix
|
||||||
chmod 0755 /nix
|
chmod 0755 /nix
|
||||||
|
|
||||||
|
if ! getent group nixbld >/dev/null 2>&1; then
|
||||||
|
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
|
||||||
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