Add cleanup to beginning of startup script
All checks were successful
Deploy to Fighter / Deploy (push) Successful in 16s
Deploy to Fighter / Notify (push) Successful in 1s

This commit is contained in:
Joey Hafner 2024-02-29 19:53:36 -08:00
parent 9474558f4b
commit 612e689b80

View File

@ -1,6 +1,10 @@
#!/bin/bash
#set -x # debugging flag
# Clean up any remnants from unclean shutdown
docker stop $(docker ps -q) # shut down running containers
docker rm $(docker ps -aq) # remove all containers
# Check for network mounted devices
# NAS SMB
if ! mount -t cifs | grep -q '/mnt/nas'; then