#!/bin/bash source library/sh_lib.sh check=0 postgresql-setup --initdb check=$(eq_is_success ${check} 0) systemctl enable postgresql systemctl restart postgresql check_test_status ${check} "$0" exit ${check}