This repository has been archived on 2021-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
drone-nix-runner/entrypoint.sh

9 lines
232 B
Bash
Raw Permalink Normal View History

2020-10-10 13:01:07 +02:00
#!/bin/sh
echo "Restoring upstream nix store…"
mkdir -p /nix/store
chmod 1775 /nix/store
chgrp nixbld /nix/store
rsync -a /nix/store-upstream/./ /nix/store
nix-daemon &
exec su-exec nobody:nogroup /usr/local/bin/drone-runner-exec