aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ""