#!/bin/sh
### params: (1) app&server identifier
### params: (2) server and path to pom.properties file of an app to check
function printInfoFor {
# delete properties file
rm -f $1.properties
# scp remote file to current dir
scp $2 $1.properties
# 'execute' properties file, properties will be available as variables
. $1.properties
# print required infos
echo "$1 -> $version"
}
###### TST
printInfoFor maApp_TST serverShortcut:/opt/app/tomcat/current/webapps/app-api/META-INF/maven/xxxxx/pom.properties
czwartek, 16 lipca 2015
Script for checking installed software versions on remote servers
serverShortcut - server connection name from .ssh/config
Subskrybuj:
Komentarze do posta (Atom)
Brak komentarzy:
Prześlij komentarz