aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-05-31 18:15:44 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-05-31 18:15:44 -0300
commitb5c9e75205baa975f54749d352ac42834bb6fb72 (patch)
tree633de78de16657b05df6657772b30bd39108f631 /files
parentd4d0b11efca44d8408fb1590a7c2087c9b41f515 (diff)
downloadpuppet-backup-b5c9e75205baa975f54749d352ac42834bb6fb72.tar.gz
puppet-backup-b5c9e75205baa975f54749d352ac42834bb6fb72.tar.bz2
Fixing remote name for boxes on sync-media-init
Diffstat (limited to 'files')
-rw-r--r--files/sync-media-init8
1 files changed, 5 insertions, 3 deletions
diff --git a/files/sync-media-init b/files/sync-media-init
index c12ad7f..5e99e1d 100644
--- a/files/sync-media-init
+++ b/files/sync-media-init
@@ -67,11 +67,13 @@ for file in `ls $MEDIA`; do
for remote in $BOXES; do
if ! echo $remote | grep -q '\.'; then
- remote="$remote.$DOMAIN"
+ host="$remote.$DOMAIN"
+ else
+ host="$remote"
fi
- echo "Adding ssh://$remote/var/cache/media/$file..."
- git remote add $remote ssh://$remote/var/cache/media/$file
+ echo "Adding ssh://$host/var/cache/media/$file..."
+ git remote add $remote ssh://$host/var/cache/media/$file
done
echo ""