1
0
Fork 0
vcp-bula-nixfiles/switchconfig/deploy.sh

4 lines
239 B
Bash
Executable File

#!/usr/bin/env bash
scp $1 root@$1.bula22.de:config; ssh root@$1.bula22.de 'cli -c "configure; load override /var/root/config; show|compare" && echo "Is this okay? Ctrl+D to accept, Ctrl+C to abort." && cat && cli -c "configure; commit"'