aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-05-31 18:42:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-05-31 18:42:58 -0300
commit3acc0743e3bd61869aaeba861ad25efdaf19b6e9 (patch)
tree5f9ded6bb8ae02d0f945813d1586c791c06bc07d /files
parentb5c9e75205baa975f54749d352ac42834bb6fb72 (diff)
downloadpuppet-backup-3acc0743e3bd61869aaeba861ad25efdaf19b6e9.tar.gz
puppet-backup-3acc0743e3bd61869aaeba861ad25efdaf19b6e9.tar.bz2
Minor enhancement at sync-media-init
Diffstat (limited to 'files')
-rw-r--r--files/sync-media-init2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/sync-media-init b/files/sync-media-init
index 5e99e1d..2a3f42a 100644
--- a/files/sync-media-init
+++ b/files/sync-media-init
@@ -20,7 +20,7 @@ if [ -z "$VOLUME" ]; then
fi
# Determine media folder
-if [ "$VOLUME" == "$HOST" ]; then
+if [ "$VOLUME" == "$HOST" ] || [ "$VOLUME" == "localhost" ]; then
MEDIA="/var/cache/media"
else
MEDIA="/media/$VOLUME/media.$DOMAIN"