desktop-environment/docker/scripts/clean.sh
Jackson Delahunt 9457b67dd2 no-ownership
2019-03-03 23:15:30 +11:00

11 lines
487 B
Bash
Executable file

REPO_ROOT=$(dirname $(readlink -f $0))/../..
# Stop the running environment so there are no containers using the volumes, ignoring errors if it does not exist
# $REPO_ROOT/docker/scripts/stop.sh 2>/dev/null
# Remove stateful volumes that are recreated directly from the container filesystem
$REPO_ROOT/docker/scripts/wipe-volume.sh DESKTOP_ENVIRONMENT_CACHE_VCSH &
$REPO_ROOT/docker/scripts/wipe-volume.sh DESKTOP_ENVIRONMENT_USER_HOME &
# Wait for wipes to complete in parallel
wait