chore: resolve shell warnings
This commit is contained in:
parent
83e904d06d
commit
022b1a2881
4
install
4
install
|
@ -110,9 +110,9 @@ function loud() {
|
|||
function loudCmd() {
|
||||
if [[ ${_q} -eq 0 ]]; then
|
||||
verbose "$@"
|
||||
eval "$@"
|
||||
"$@"
|
||||
else
|
||||
eval "$@" > /dev/null
|
||||
"$@" > /dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ FILES=(
|
|||
)
|
||||
|
||||
echo -e "The following files, directories, and services will be removed:\n"
|
||||
for i in ${FILES[*]}; do
|
||||
for i in "${FILES[@]}"; do
|
||||
echo "$i"
|
||||
done
|
||||
echo "pip3 libretime-playout"
|
||||
|
@ -76,7 +76,7 @@ set +e
|
|||
removeRabbitmqLibreTimeSettings
|
||||
set -e
|
||||
|
||||
for i in ${FILES[*]}; do
|
||||
for i in "${FILES[@]}"; do
|
||||
rm -rf "$i"
|
||||
done
|
||||
|
||||
|
|
|
@ -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';"
|
||||
|
|
|
@ -14,7 +14,8 @@ command -v openssl > /dev/null || error "openssl command not found!"
|
|||
command -v rabbitmqctl > /dev/null || error "rabbitmqctl command not found!"
|
||||
|
||||
typeset -r RMQ_USER="airtime"
|
||||
typeset -r RMQ_PASSWORD=$(openssl rand -hex 16)
|
||||
RMQ_PASSWORD=$(openssl rand -hex 16)
|
||||
typeset -r RMQ_PASSWORD
|
||||
|
||||
# RabbitMQ
|
||||
echo "Changing password for rabbitmq user '$RMQ_USER' to '$RMQ_PASSWORD'"
|
||||
|
|
Loading…
Reference in New Issue