uci-docker-nextcloud/deploy/scrub

16 lines
617 B
Plaintext
Raw Normal View History

2024-09-12 16:21:59 -07:00
#!/bin/bash
source ./confirm
if envf=$(./env_file $1) ; then
source $envf
echo "SUPER DANGER you are requesting to SCRUB the installation"
echo scrub removes both containers and volumes and then deletes ALL bound host directories
echo $HOST_NEXTCLOUD_APP $HOST_NEXTCLOUD_USERFILES $HOST_NEXTCLOUD_DB
echo If bound directories are not backed up you WILL LOSE ALL the installation including user data permenently, proceed with caution
if confirm -s DANGER, continue; then
./clean $1
sudo rm -rf $HOST_NEXTCLOUD_APP $HOST_NEXTCLOUD_USERFILES $HOST_NEXTCLOUD_DB
else
echo no environment file $1
fi
fi