From 294890091d064c62f7be91668ade07afd116260c Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Fri, 26 Aug 2016 20:14:37 +0200 Subject: [PATCH] basic update script --- update_all.sh | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 update_all.sh diff --git a/update_all.sh b/update_all.sh new file mode 100755 index 0000000..1e0dc6e --- /dev/null +++ b/update_all.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash +set -e +userspace_update_cmd="$(cat <" -A hosts.woodhouse) + echo "nix-channel --update" | nixops ssh $1 + cp deploy_key deploy_key2 + chmod 0600 deploy_key2 + ssh-agent bash <