Adds install-dbmanager.sh and updates miseExec.sh

This commit is contained in:
Matheus Albino Brunhara
2024-12-06 14:00:48 -03:00
parent f55f1e3e29
commit 4742e26700
2 changed files with 165 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ MISE_TOOL_MAVEN_3_9_9="3.9.9"
FILENAME_GP_DEBUGPORTS="debugports-01.sh"
FILENAME_GEOSERVER="runstandalone.sh"
FILENAME_METAWIZARD="metawizard.sh"
FILENAME_DBMANAGER="dbmanager.sh"
list_presets() {
echo "Choose one of the presets:"
@@ -54,6 +55,7 @@ list_presets() {
echo " 4. Run Maven 3.3.3 with Java 8"
echo " 5. Run Maven 3.8.4 with Java 11"
echo " 6. Run MetaWizard with Java 8"
echo " 7. Run DBManager with Java 8"
}
read_preset_input() {
@@ -84,6 +86,10 @@ select_preset_by_input() {
set_executable_filename_if_it_is_null "$FILENAME_METAWIZARD"
MISE_TOOLS=("java@$MISE_TOOL_JAVA_8")
;;
"7")
set_executable_filename_if_it_is_null "$FILENAME_DBMANAGER"
MISE_TOOLS=("java@$MISE_TOOL_JAVA_8")
;;
esac
}
@@ -101,7 +107,7 @@ select_preset_by_input
EXECUTABLE_FILENAME="./$EXECUTABLE_FILENAME"
if [ ! -f "$EXECUTABLE_FILENAME" ]; then
if [ ! -f "$EXECUTABLE_FILENAME" ] && [ ! "$SHOULD_DRY_RUN" ]; then
echo "The executable filename \"$EXECUTABLE_FILENAME\" does not exist in the current working directory."
exit 1
fi