add scppvp
This commit is contained in:
parent
463a35aed9
commit
bafd937fdd
1 changed files with 14 additions and 0 deletions
14
functions.sh
14
functions.sh
|
@ -1339,6 +1339,20 @@ pg_drop_and_recreate_db () {
|
|||
\l+ ${DB}
|
||||
\c postgres
|
||||
}
|
||||
|
||||
scppvp () {
|
||||
local SERVICE=$1
|
||||
local SETTINGS="$(ls -t $HOME/git/bmi/at.gv.bmi.common.pvp.settings/target/pvp-settings*|head -n1)"
|
||||
local PVPAUTH="$(ls -t ${HOME}/git/bmi/at.gv.bmi.${SERVICE}.pvp.authenticator/target/pvp-*|head -n1)"
|
||||
cat << EOF
|
||||
deploy ${SERVICE}
|
||||
SETTINGS: ${SETTINGS}
|
||||
PVP Authenticator: ${PVPAUTH}
|
||||
EOF
|
||||
parallel-scp -h ${HOME}/.dsh/group/${SERVICE} ${SETTINGS} ${PVPAUTH} /root/INSTALL
|
||||
|
||||
}
|
||||
|
||||
#EOF
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue