File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
charts/redcap/configuration/redcap/init Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ update_database_config () {
5858
5959 echo " [INFO] Injecting REDCap database configuration"
6060 cp -f /tmp/conf/database.php " ${REDCAP_INSTALL_PATH} /database.php"
61-
6261 echo " [INFO] REDCap Database configuration updated!"
6362}
6463
@@ -80,6 +79,11 @@ if [ -n "$(find "$REDCAP_INSTALL_PATH" -mindepth 1 -maxdepth 1 -not -path "$RED
8079
8180 if [ " $REDCAP_VERSION_SANITIZED " -eq " $REDCAP_CURRENT_VERSION_SANITIZED " ]; then
8281 echo " [INFO] REDCap version ${REDCAP_VERSION} files are already present in ${REDCAP_INSTALL_PATH} . Skipping installation process."
82+ if [ -f " ${APP_INSTALL_PATH} /database.php" ]; then
83+ echo " database.php founded"
84+ else
85+ update_database_config
86+ fi
8387 exit 0
8488
8589 elif [ " $REDCAP_VERSION_SANITIZED " -gt " $REDCAP_CURRENT_VERSION_SANITIZED " ]; then
You can’t perform that action at this time.
0 commit comments