aboutsummaryrefslogtreecommitdiff
path: root/files/sync-media-init
diff options
context:
space:
mode:
Diffstat (limited to 'files/sync-media-init')
-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"