Do not remove gui if env is docker
#!/usr/bin/env bash
-time sudo apt purge -y fledge fledge-gui
-# If running on docker, do not remove as Docker volume is
-# mounted at /usr/local/fledge/data
-if [ "${FLEDGE_ENVIRONMENT}" != "docker" ]; then
+time sudo apt purge -y fledge
sudo rm -rf /usr/local/fledge
+# Do not remove fledge-gui if environment is Docker
+if [ "${FLEDGE_ENVIRONMENT}" != "docker" ]; then
+ time sudo apt purge -y fledge-gui
fi
\ No newline at end of file
