Files
Ansible-Build/roles/postgres/files/install
T

30 lines
762 B
Bash
Executable File

#!/bin/bash
# Exit script if command fails
# -u stops the script on unset variables
# -e stops the script on errors
# -o pipefail stops the script if a pipe fails
set -e
REPOSITORY=https://raw.githubusercontent.com/mint-system/ansible-build
SCRIPTS=(
docker-postgres-backup
docker-postgres-create
docker-postgres-list
docker-postgres-restore
docker-postgres-drop
docker-postgres-patch
docker-postgres-duplicate
docker-postgres-size
docker-postgres-shell
docker-postgres-upgrade
docker-postgres-rename
)
for SCRIPT in ${SCRIPTS[@]}; do
echo "Install $SCRIPT script ..."
sudo curl -L "$REPOSITORY/main/roles/postgres/files/$SCRIPT" -o "/usr/local/bin/$SCRIPT"
sudo chmod +x "/usr/local/bin/$SCRIPT"
done