16 lines
617 B
Bash
Executable File
16 lines
617 B
Bash
Executable File
#!/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 |