Mercurial > dive4elements > river
comparison flys-backend/contrib/import_river.sh @ 5192:1b6d4edeeb4c
Fix variable assignments after rename
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Thu, 07 Mar 2013 16:06:44 +0100 |
parents | 4aa748db8be3 |
children | 14186e924534 |
comparison
equal
deleted
inserted
replaced
5191:4aa748db8be3 | 5192:1b6d4edeeb4c |
---|---|
88 usage;; | 88 usage;; |
89 "--") | 89 "--") |
90 shift | 90 shift |
91 break;; | 91 break;; |
92 "-u"|"--username") | 92 "-u"|"--username") |
93 USER=$2 | 93 DBUSER=$2 |
94 shift 2;; | 94 shift 2;; |
95 "-w"|"--password") | 95 "-w"|"--password") |
96 PASS=$2 | 96 DBPASS=$2 |
97 shift 2;; | 97 shift 2;; |
98 "-h"|"--host") | 98 "-h"|"--host") |
99 HOST=$2 | 99 DBHOST=$2 |
100 shift 2;; | 100 shift 2;; |
101 "-p"|"--port") | 101 "-p"|"--port") |
102 PORT=$2 | 102 DBPORT=$2 |
103 shift 2;; | 103 shift 2;; |
104 "-l"|"--log-dir") | 104 "-l"|"--log-dir") |
105 LOG=$2 | 105 LOG=$2 |
106 shift 2;; | 106 shift 2;; |
107 "-d"|"--db-name") | 107 "-d"|"--db-name") |
127 usage;; | 127 usage;; |
128 esac | 128 esac |
129 done | 129 done |
130 | 130 |
131 if [ -z $DBUSER ]; then | 131 if [ -z $DBUSER ]; then |
132 USER=$DEFAULT_USER | 132 DBUSER=$DEFAULT_USER |
133 fi | 133 fi |
134 if [ -z $DBPASS ]; then | 134 if [ -z $DBPASS ]; then |
135 PASS=$DEFAULT_PASS | 135 DBPASS=$DEFAULT_PASS |
136 fi | 136 fi |
137 if [ -z $DBPORT ]; then | 137 if [ -z $DBPORT ]; then |
138 PORT=$DEFAULT_PORT | 138 DBPORT=$DEFAULT_PORT |
139 fi | 139 fi |
140 if [ -z $DBHOST ]; then | 140 if [ -z $DBHOST ]; then |
141 HOST=$DEFAULT_HOST | 141 DBHOST=$DEFAULT_HOST |
142 fi | 142 fi |
143 if [ -z $BACKEND_NAME ]; then | 143 if [ -z $BACKEND_NAME ]; then |
144 BACKEND_NAME=$DEFAULT_BACKEND_NAME | 144 BACKEND_NAME=$DEFAULT_BACKEND_NAME |
145 fi | 145 fi |
146 if [ -z $LOGDIR ]; then | 146 if [ -z $LOGDIR ]; then |