Add cleanup to beginning of startup script
This commit is contained in:
parent
9474558f4b
commit
612e689b80
@ -1,6 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#set -x # debugging flag
|
#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
|
# Check for network mounted devices
|
||||||
# NAS SMB
|
# NAS SMB
|
||||||
if ! mount -t cifs | grep -q '/mnt/nas'; then
|
if ! mount -t cifs | grep -q '/mnt/nas'; then
|
||||||
|
Loading…
Reference in New Issue
Block a user