mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 17:20:04 -06:00
Update mover
small check for mover in empty()
This commit is contained in:
@@ -88,6 +88,11 @@ start() {
|
||||
empty() {
|
||||
DISK="$1"
|
||||
|
||||
if [ ! -d "/mnt/$DISK" ]; then
|
||||
echo "Error: disk '$DISK' not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -f $PIDFILE ]; then
|
||||
if ps h $(cat $PIDFILE) | grep mover ; then
|
||||
echo "mover: already running"
|
||||
|
||||
Reference in New Issue
Block a user