From dc533ec3c9d93fa5d1e46b51d30223d9f75db41f Mon Sep 17 00:00:00 2001 From: obadz <3359345+obadz@users.noreply.github.com> Date: Sat, 8 Dec 2018 22:16:18 +0000 Subject: [PATCH] Fix Startup Script issue on Vultr --- README.md | 7 ++++--- nixos-infect | 7 ++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 893b404..e4e4282 100644 --- a/README.md +++ b/README.md @@ -68,14 +68,15 @@ runcmd: ## 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 +#!/bin/sh + 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 -installation around the time Nix gets installed for some reason.) +Allow for a few minutes over the usual Ubuntu deployment time for NixOS to download & install itself. ## Motivation diff --git a/nixos-infect b/nixos-infect index da66f4a..928c281 100755 --- a/nixos-infect +++ b/nixos-infect @@ -40,7 +40,12 @@ EOF } EOF - [ "$PROVIDER" = "digitalocean" ] && makeNetworkingConf + if [ "$PROVIDER" = "digitalocean" ] + then + makeNetworkingConf + else + true + fi } makeNetworkingConf() {