From 1b65ba7a838e422c9bf16ddcaf796a996fa51b6b Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 27 Dec 2024 08:45:34 +0100 Subject: refactor: introduce profiles --- nixos/parts/scripts/deploy-dir | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100755 nixos/parts/scripts/deploy-dir (limited to 'nixos/parts/scripts/deploy-dir') diff --git a/nixos/parts/scripts/deploy-dir b/nixos/parts/scripts/deploy-dir deleted file mode 100755 index bb7dfdf..0000000 --- a/nixos/parts/scripts/deploy-dir +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -if [ "$#" -ne 3 ]; then - echo "usage: $0 " - exit 1 -fi -printf -v remote_dir %q $3 - -cd $1 -tar cf - . | ssh $2 "set -xe -TEMP_DIR=\$(mktemp -d) -cd \$TEMP_DIR -tar xvf - -rm -rf $remote_dir -mv \$TEMP_DIR $remote_dir -" -- cgit v1.2.3