Skip to content
Permalink
5.17.1
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
@mchyzer
Latest commit 93acf6b Nov 25, 2023 History
1 contributor

Users who have contributed to this file

28 lines (20 sloc) 679 Bytes
#!/bin/bash
runCommand() {
if [ "$GROUPER_RUN_PROCESSES_AS_USERS" = "true" ]; then
echo "grouperContainer; INFO: (libraryRunCommand.sh-runCommand) Starting tomcat: sudo --preserve-env -u tomcat /opt/tomcat/bin/catalina.sh run"
sudo --preserve-env -u tomcat /opt/tomcat/bin/catalina.sh run
else
echo "grouperContainer; INFO: (libraryRunCommand.sh-runCommand) Starting tomcat: /opt/tomcat/bin/catalina.sh run"
/opt/tomcat/bin/catalina.sh run
fi
}
runCommand_unsetAll() {
unset -f runCommand
unset -f runCommand_unsetAll
}
runCommand_exportAll() {
export -f runCommand
export -f runCommand_unsetAll
}
# export everything
runCommand_exportAll