This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository observe. See http://git.codelutin.com/observe.git commit e6c1bdeff653c9f5f98ac19f677c99c0dbc3c6ed Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 9 12:09:03 2015 +0200 refs #6923 Ajout de dbHost et dbPort dans le script --- .../src/main/assembly/dist/obstuna-admin/apply-extra.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/observe-swing/src/main/assembly/dist/obstuna-admin/apply-extra.sh b/observe-swing/src/main/assembly/dist/obstuna-admin/apply-extra.sh old mode 100644 new mode 100755 index 31ca06a..558a083 --- a/observe-swing/src/main/assembly/dist/obstuna-admin/apply-extra.sh +++ b/observe-swing/src/main/assembly/dist/obstuna-admin/apply-extra.sh @@ -32,6 +32,18 @@ if [ "$dbName" == "" ] ; then dbName=obstuna fi +echo -n "Machine de la base à utiliser ? [localhost] " +read dbHost +if [ "$dbHost" == "" ] ; then + dbHost=localhost +fi + +echo -n "Port de la base à utiliser ? [5432] " +read dbPort +if [ "$dbPort" == "" ] ; then + dbPort=5432 +fi + echo -n "Nom de l'utilisateur administrateur de la base ? [admin] " read dbUser if [ "$dbUser" == "" ] ; then @@ -43,6 +55,6 @@ for script in $(ls extra/*.sql); do read i if [ "$i" == "O" -o "$i" == "o" -o "$i" == "" ] ; then echo "Execution du script $script" - cat $script | psql -d $dbName -U $dbUser -h localhost + cat $script | psql -d $dbName -U $dbUser -h $dbHost -p $dbPort fi done \ No newline at end of file -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.