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
Simon Bruder d41d680121
All checks were successful
continuous-integration/drone/push Build is passing
Initial commit
2020-10-10 14:11:37 +02:00

9 lines
232 B
Bash
Executable file

#!/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