]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - nixops/scripts/with_env
Add monitoring script with smartctl
[perso/Immae/Config/Nix.git] / nixops / scripts / with_env
diff --git a/nixops/scripts/with_env b/nixops/scripts/with_env
deleted file mode 100755 (executable)
index 26e74b5..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env bash
-
-if [ -z "$NIXOPS" ]; then
-  echo "Please set NIXOPS to the nixops command"
-  exit 1;
-fi
-
-TEMP=$(mktemp -d /tmp/XXXXXX-nixops-files)
-chmod go-rwx $TEMP
-
-finish() {
-  rm -rf "$TEMP"
-  $NIXOPS set-args --unset privateFiles
-}
-
-trap finish EXIT
-
-# pass cannot "just" list files in a directory without showing a tree :(
-files=$(pass ls Nixops/files | sed -e '1d' -e 's/^.* //')
-
-for file in $files; do
-  pass show "Nixops/files/$file" > $TEMP/$file
-done
-$NIXOPS set-args --argstr privateFiles "$TEMP"
-
-"$@"