mirror of
https://github.com/elitak/nixos-infect
synced 2024-11-10 05:54:20 +00:00
Fix Startup Script issue on Vultr
This commit is contained in:
parent
5596ad166a
commit
dc533ec3c9
2 changed files with 10 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,12 @@ EOF
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
[ "$PROVIDER" = "digitalocean" ] && makeNetworkingConf
|
if [ "$PROVIDER" = "digitalocean" ]
|
||||||
|
then
|
||||||
|
makeNetworkingConf
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
makeNetworkingConf() {
|
makeNetworkingConf() {
|
||||||
|
|
Loading…
Reference in a new issue