Maybe defaulting to turning everything off when the script runs wasn't a great idea
This commit is contained in:
parent
b6d1abc911
commit
d0d54f1ee8
@ -1,9 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#set -x # debugging flag
|
#set -x # debugging flag
|
||||||
|
|
||||||
# Clean up any remnants from unclean shutdown
|
if "$1" == "clean"; then
|
||||||
docker stop $(docker ps -q) # shut down running containers
|
# Clean up any remnants from unclean shutdown
|
||||||
docker rm $(docker ps -aq) # remove all containers
|
docker stop $(docker ps -q) # shut down running containers
|
||||||
|
docker rm $(docker ps -aq) # remove all containers
|
||||||
|
fi
|
||||||
|
|
||||||
# Check for network mounted devices
|
# Check for network mounted devices
|
||||||
# NAS SMB
|
# NAS SMB
|
||||||
|
Loading…
Reference in New Issue
Block a user