feat: support restore data to postgresql database
This commit is contained in:
@@ -36,13 +36,6 @@ if [[ "$1" == "restore" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
function configure_postgresql() {
|
||||
if [[ "${DB_TYPE}" == "POSTGRESQL" ]]; then
|
||||
echo "${PG_HOST}:${PG_PORT}:${PG_DBNAME}:${PG_USERNAME}:${PG_PASSWORD}" > ~/.pgpass
|
||||
chmod 0600 ~/.pgpass
|
||||
fi
|
||||
}
|
||||
|
||||
function configure_timezone() {
|
||||
ln -sf "/usr/share/zoneinfo/${TIMEZONE}" "${LOCALTIME_FILE}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user