chore: resolve shell warnings

This commit is contained in:
Kyle Robbertze 2021-11-08 10:22:07 +02:00 committed by Jonas L
parent 83e904d06d
commit 022b1a2881
4 changed files with 8 additions and 6 deletions

View file

@ -15,7 +15,8 @@ command -v openssl > /dev/null || error "openssl command not found!"
command -v psql > /dev/null || error "psql command not found!"
typeset -r DB_USER="airtime"
typeset -r DB_PASSWORD=$(openssl rand -hex 16)
DB_PASSWORD=$(openssl rand -hex 16)
typeset -r DB_PASSWORD
echo "Changing password for database user '$DB_USER' to '$DB_PASSWORD'"
sudo -u postgres psql -c "ALTER USER $DB_USER WITH PASSWORD '$DB_PASSWORD';"