Checking all installed modules before runnign setup-Dev

This commit is contained in:
Aditya Ujeniya
2025-02-17 10:13:23 +01:00
parent b8b7273016
commit 0590e84565
4 changed files with 154 additions and 29 deletions

68
scripts/checkModules.sh Executable file
View File

@@ -0,0 +1,68 @@
#!/bin/bash
cd scripts
# Check if required perl modules are installed
if ./checkPerlModules.pl ../migrateTimestamps.pl | grep "couldn't load"; then
echo "Perl Modules missing!"
echo -n "Stopped."
exit
else
echo "Perl Modules loaded."
fi
# check if golang is installed and available
if ! go version; then
echo "Golang not installed!"
echo -n "Stopped."
exit
else
echo "Golang installed."
fi
# check if docker is installed and available
if ! docker --version; then
echo "Docker not installed!"
echo -n "Stopped."
exit
else
echo "Docker installed."
fi
# check if docker-compose is installed and available
if ! docker-compose --version; then
echo "Docker-compose not installed!"
echo -n "Stopped."
exit
else
echo "Docker-compose installed."
fi
# check if npm is installed and available
if ! npm --version; then
echo "NPM not installed!"
echo -n "Stopped."
exit
else
echo "NPM installed."
fi
# check if make is installed and available
if ! make --version; then
echo "Make not installed!"
echo -n "Stopped."
exit
else
echo "Make installed."
fi
# check if gcc is installed and available
if ! gcc --version; then
echo "GCC not installed!"
echo -n "Stopped."
exit
else
echo "GCC installed."
fi
cd ..