feat: support restore data to postgresql database

This commit is contained in:
ttionya
2022-12-11 23:02:10 +08:00
parent 3740262e8c
commit d5613d5cfe
3 changed files with 32 additions and 10 deletions
-7
View File
@@ -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}"
}