Move play directory to tmp dir
This commit is contained in:
parent
885a14dd6f
commit
dd41e2d290
6
play.sh
6
play.sh
@ -1,9 +1,9 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
PLAYDIR=./current
|
PLAYDIR=/tmp/beets_play
|
||||||
mkdir -p "$PLAYDIR"
|
mkdir -p "$PLAYDIR"
|
||||||
ln "$1" "$PLAYDIR/$(basename "$1")"
|
cp "$1" "$PLAYDIR/$(basename "$1")"
|
||||||
ln "$1" "$PLAYDIR/play"
|
cp "$1" "$PLAYDIR/play"
|
||||||
caddy file-server --listen :9999 --browse --root "$PLAYDIR"
|
caddy file-server --listen :9999 --browse --root "$PLAYDIR"
|
||||||
rm "$PLAYDIR"/*
|
rm "$PLAYDIR"/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user