diff --git a/board/common/overlay/etc/init.d/S72postgresql b/board/common/overlay/etc/init.d/S72postgresql index b0f38d04a4..b6b61b82ce 100755 --- a/board/common/overlay/etc/init.d/S72postgresql +++ b/board/common/overlay/etc/init.d/S72postgresql @@ -28,6 +28,7 @@ start() { chown -R ${USER} ${DB_DIR} touch ${LOG} chown ${USER} ${LOG} + cd ${DB_DIR} if [[ ! -f ${DB_DIR}/PG_VERSION ]]; then msg_begin "Initializing postgresql db"