Commit ed193ff1 authored by Sandeep Kadam's avatar Sandeep Kadam

Corrected db name if any hyphen

parent a8234560
......@@ -48,9 +48,10 @@ case "${COMMAND}" in
sql)
rm -rf ${RELATIVE_SQLDUMP_SRC} ${RELATIVE_SQLDATA_SRC};
mkdir -pv ${RELATIVE_SQLDUMP_SRC};
PROJECT_NAME_DB=${PROJECT_NAME//./_};
PROJECT_NAME_DB=${PROJECT_NAME_DB//-/_};
SQLDUMP_FILE=${RELATIVE_SQLDUMP_SRC}/${ENVIRONMENT}.${DEPLOY_INSTANCE}.${PROJECT_NAME}.sql.gz;
PROJECT_FOLDER_PATH="$NFS_MYSQL_BACKUP_PATH/${ENVIRONMENT}_${DEPLOY_INSTANCE}_${PROJECT_NAME//./_}";
PROJECT_FOLDER_PATH="$NFS_MYSQL_BACKUP_PATH/${ENVIRONMENT}_${DEPLOY_INSTANCE}_${PROJECT_NAME_DB}";
echo "Dumping database from ${ENVIRONMENT}.${DEPLOY_INSTANCE}.${PROJECT_NAME}...";
if [ "$LOCAL_DEPLOYMENT" -eq "1" ] ; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment