add informations - drist - a remote deployment tool
HTML git clone git://bitreich.org/drist/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/drist/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 44756b34c121b56dd90e470f98d042cb4268fed1
DIR parent e6bb894de908b29609c821bebc12659eb0913e75
HTML Author: Solene Rapenne <solene@perso.pw>
Date: Tue, 17 Jul 2018 23:29:35 +0200
add informations
Diffstat:
M drist | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
DIR diff --git a/drist b/drist
@@ -20,8 +20,8 @@ then
if [ -f "$LIST" ]
then
find files/ -type f | cut -d '/' -f 2- > "${LIST}"
- cat $LIST
- rsync -vlD --files-from="${LIST}" files/ "${1}":/
+ printf 'Copying files :\n' ; cat $LIST
+ rsync -lD --files-from="${LIST}" files/ "${1}":/
rm "$LIST"
fi
fi
@@ -32,13 +32,15 @@ then
if [ -f "$LIST" ]
then
find "files-${HOSTNAME}/" -type f | cut -d '/' -f 2- > "${LIST}"
- rsync -vlD --files-from="${LIST}" "files-${HOSTNAME}/" "${1}":/
+ printf 'Copying files only for %s:\n' "${HOSTNAME}" ; cat $LIST
+ rsync -lD --files-from="${LIST}" "files-${HOSTNAME}/" "${1}":/
rm "$LIST"
fi
fi
if [ -f "script" ]
then
+ printf 'Executing script\n'
cat "script" | \
ssh "${1}" 'DRIST=$(mktemp /tmp/drist.XXXXXXXXXXXX) &&
cat - > "$DRIST" &&
@@ -49,6 +51,7 @@ fi
if [ -f "script-${HOSTNAME}" ]
then
+ printf 'Executing script only for %s:\n' "${HOSTNAME}"
cat "script-${HOSTNAME}" | \
ssh "${1}" 'DRIST=$(mktemp /tmp/drist.XXXXXXXXXXXX) &&
cat - > "$DRIST" &&