]> WPIA git - gigi.git/blobdiff - doc/scripts/gigi
upd: get translations from new translation server
[gigi.git] / doc / scripts / gigi
index 763af7cb628ee2b54e8e1ff109e2cb6baf319794..14bccc430d126cbec65024cca636b2f9c3c1a971 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 if [ "$JDBC_DRIVER" == "" ]
 then
-JDBC_DRIVER=/usr/share/java/mysql-connector-java.jar
+JDBC_DRIVER=/usr/share/java/postgresql-jdbc4.jar
 #echo "JDBC_DRIVER environment variable not set. Assumed path: $JDBC_DRIVER"
 fi
 if [ "$GIGI_EXEC" == "" ]
@@ -34,7 +34,11 @@ then
        java -cp $JDBC_DRIVER:$GIGI_EXEC org.cacert.gigi.util.DatabaseManager
 elif [ "$1" == "fetch-locales" ]
 then
-       java -cp $JDBC_DRIVER:$GIGI_EXEC org.cacert.gigi.util.FetchLocales
+    if [ "$2" == "" ]; then
+               java -cp $JDBC_DRIVER:$GIGI_EXEC org.cacert.gigi.util.FetchLocales
+       else
+               java -cp $JDBC_DRIVER:$GIGI_EXEC org.cacert.gigi.util.FetchLocales "$2"
+       fi
 elif [ "$1" == "signer-conf" ]
 then
        mkdir /var/lib/cacert-gigi/config