awips2/deltaScripts/19.3.5/DR8307/postgresql-9.6.20-upgrade/postgres_pre_upgrade.sh
2022-05-05 12:34:50 -05:00

13 lines
309 B
Bash
Executable file

#!/bin/bash
# This script just calls _postgres_pre_upgrade.sh as user awips
#
# Author: tgurney
if [[ "$(id -u)" -ne 0 ]]; then
echo "$(basename $0): need to be root."
exit 1
fi
scriptdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
sudo -nu awips bash "$scriptdir/_postgres_pre_upgrade.sh"