Move play directory to tmp dir

This commit is contained in:
IamTheFij 2020-11-18 11:55:48 -08:00
parent 885a14dd6f
commit dd41e2d290
1 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
#! /bin/bash
PLAYDIR=./current
PLAYDIR=/tmp/beets_play
mkdir -p "$PLAYDIR"
ln "$1" "$PLAYDIR/$(basename "$1")"
ln "$1" "$PLAYDIR/play"
cp "$1" "$PLAYDIR/$(basename "$1")"
cp "$1" "$PLAYDIR/play"
caddy file-server --listen :9999 --browse --root "$PLAYDIR"
rm "$PLAYDIR"/*