Reference Airship manifests, CICD, and reference architecture.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
506 B

#!/bin/bash
set -ex
sudo chmod 700 patroni_endpoint_cleaner.sh
sudo cp patroni_endpoint_cleaner.sh /opt
cat > ./patroni_endpoint_cleaner.service << EOF
[Unit]
Description=Helper script for initial upgrade to HA Postgres
[Service]
ExecStart=/opt/patroni_endpoint_cleaner.sh
[Install]
WantedBy=multi-user.target
EOF
sudo mv patroni_endpoint_cleaner.service /lib/systemd/system/
sudo systemctl restart patroni_endpoint_cleaner
sudo systemctl enable patroni_endpoint_cleaner
sudo systemctl daemon-reload