Fix Startup Script issue on Vultr

This commit is contained in:
obadz 2018-12-08 22:16:18 +00:00 committed by Eric Litak
parent 5596ad166a
commit dc533ec3c9
2 changed files with 10 additions and 4 deletions

View file

@ -68,14 +68,15 @@ runcmd:
## Vultr ## Vultr
From a Vultr server, log into the box and invoke the following command: To set up a NixOS Vultr server, instantiate an Ubuntu box with the following "Startup Script":
```bash ```bash
#!/bin/sh
curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | PROVIDER=vultr NIX_CHANNEL=nixos-18.09 bash curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | PROVIDER=vultr NIX_CHANNEL=nixos-18.09 bash
``` ```
(One ought to be able to use a "Startup Script" for this but it seems like the Allow for a few minutes over the usual Ubuntu deployment time for NixOS to download & install itself.
installation around the time Nix gets installed for some reason.)
## Motivation ## Motivation

View file

@ -40,7 +40,12 @@ EOF
} }
EOF EOF
[ "$PROVIDER" = "digitalocean" ] && makeNetworkingConf if [ "$PROVIDER" = "digitalocean" ]
then
makeNetworkingConf
else
true
fi
} }
makeNetworkingConf() { makeNetworkingConf() {