cp $JENKINS_HOME/pgadmin-configs/config_local.py $WORKSPACE/web/config_local.py ||{echo'ERROR: Failed to create config_local.py.';exit 1;}
echoLOG_FILE=\"$WORKSPACE/var/pgadmin4.log\" >> $WORKSPACE/web/config_local.py ||{echo'ERROR: Failed to create config_local.py.';exit 1;}
echoSESSION_DB_PATH=\"$WORKSPACE/var/sessions\" >> $WORKSPACE/web/config_local.py ||{echo'ERROR: Failed to create config_local.py.';exit 1;}
echoSTORAGE_DIR=\"$WORKSPACE/var/storage\" >> $WORKSPACE/web/config_local.py ||{echo'ERROR: Failed to create config_local.py.';exit 1;}
echoSQLITE_PATH=\"$WORKSPACE/var/pgadmin4.db\" >> $WORKSPACE/web/config_local.py ||{echo'ERROR: Failed to create config_local.py.';exit 1;}
echoTEST_SQLITE_PATH=\"$WORKSPACE/var/pgadmin4.db\" >> $WORKSPACE/web/config_local.py ||{echo'ERROR: Failed to create config_local.py.';exit 1;}
cp $JENKINS_HOME/pgadmin-configs/test_config.json $WORKSPACE/web/regression/test_config.json ||{echo'ERROR: Failed to copy the test configuration.';exit 1;}