You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
###### Update Script - Attempts to pull the latest images for the Command Center and its dependencies (i.e. mysql) and recreate the containers. Note: this *only* updates the Command Center containers. It does not update the installable application containers - that should be done through the Command Center UI
79
79
```bash
80
80
sudo bash /opt/project-nomad/update_nomad.sh
81
+
```
82
+
83
+
###### Uninstall Script - Need to start fresh? Use the uninstall script to make your life easy. Note: this cannot be undone!
echo"Please run this script from a directory other than ${NOMAD_DIR}."
30
+
exit 1
31
+
fi
32
+
}
33
+
34
+
ensure_management_compose_file_exists(){
35
+
if [ !-f"${MANAGEMENT_COMPOSE_FILE}" ];then
36
+
echo"Unable to find the management Docker Compose file at ${MANAGEMENT_COMPOSE_FILE}. There may be a problem with your Project N.O.M.A.D. installation."
37
+
exit 1
38
+
fi
39
+
}
40
+
41
+
get_uninstall_confirmation(){
42
+
read -p "This script will remove ALL Project N.O.M.A.D. files and containers. THIS CANNOT BE UNDONE. Are you sure you want to continue? (y/n): " choice
43
+
case"$choice"in
44
+
y|Y )
45
+
echo -e "User chose to continue with the uninstallation."
46
+
;;
47
+
n|N )
48
+
echo -e "User chose not to continue with the uninstallation."
49
+
exit 0
50
+
;;
51
+
* )
52
+
echo"Invalid Response"
53
+
echo"User chose not to continue with the uninstallation."
54
+
exit 0
55
+
;;
56
+
esac
57
+
}
58
+
59
+
ensure_docker_installed() {
60
+
if!command -v docker &> /dev/null;then
61
+
echo"Unable to find Docker. There may be a problem with your Docker installation."
62
+
exit 1
63
+
fi
64
+
}
65
+
66
+
uninstall_nomad() {
67
+
echo"Stopping and removing Project N.O.M.A.D. containers..."
68
+
docker compose -f "${MANAGEMENT_COMPOSE_FILE}" down
69
+
70
+
echo"Allowing some time for containers to stop..."
71
+
sleep 15
72
+
echo"Containers should be stopped now."
73
+
74
+
echo"Removing Project N.O.M.A.D. files..."
75
+
rm -rf "${NOMAD_DIR}"
76
+
77
+
echo"Project N.O.M.A.D. has been uninstalled. We hope to see you again soon!"
0 commit comments