]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Improving postgresql installation Installation
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 26 Jun 2025 20:05:50 +0000 (16:05 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 26 Jun 2025 20:05:50 +0000 (16:05 -0400)
lib/unipar.c
support/crdb.sh

index 465840092af15b5b40f260063bcf135491850ba3..30e298ae71c1f46e5cb95398b71b6c900f53a5b7 100644 (file)
@@ -158,11 +158,11 @@ while (((c=getopt(argc,argv,optstring))!=EOF)&&(params!=(ARGTYP *)0)) {
       break;
     case 'f'   :       //background/daemon mode
       foreground=true;
-      (void) fprintf(stderr,"%s-%s, foreground mode requested\n",
+      (void) fprintf(stdout,"%s-%s, foreground mode requested\n",
                             shortname,rou_getversion());
       break;
     case 'h'   :       //requestion program help
-      (void) fprintf(stderr,"%s-%s\n",shortname,rou_getversion());
+      (void) fprintf(stdout,"%s-%s\n",shortname,rou_getversion());
       (void) usage_aid(shortname,optstring);
       params=par_freeparams(params);    //no going further
       break;
@@ -176,13 +176,13 @@ while (((c=getopt(argc,argv,optstring))!=EOF)&&(params!=(ARGTYP *)0)) {
       rootdir=strdup(optarg);
       break;
     case 'v'   :
-      (void) fprintf(stderr,"%s:\tVersion <%s>\n",
+      (void) fprintf(stdout,"%s:\tVersion:%s\n",
                             shortname,rou_getversion());
       (void) exit(0);           //just display version
       break;
     default    :
-      (void) fprintf(stderr,"%s-%s\n",shortname,rou_getversion());
-      (void) fprintf(stderr,"\"%s\" unexpected argument designator\n\n",
+      (void) fprintf(stdout,"%s-%s\n",shortname,rou_getversion());
+      (void) fprintf(stdout,"\"%s\" unexpected argument designator\n\n",
                             argv[optind-1]);
       (void) usage_aid(shortname,optstring);
       params=par_freeparams(params);
index 69cc58b4f6638b94e71730cfdccedbc26c719c68..541cdc91bff2aca72061ef1bcacbf1781dca8c53 100755 (executable)
@@ -89,4 +89,9 @@ case "$DB_TYPE" in
 #loading database definition
 if [ -n "$MSQL" ] ; then
   cpp -P -D$DB_TYPE /usr/share/$APPNAME/sql/$APPNAME.sql | $MSQL
+   DIST=`/usr/sbin/receiver -v | cut -d '-' -f2`
+   #is this de developpement version?
+   if [ "$DIST" = "dvl" ] ; then
+     cpp -P -D$DB_TYPE /usr/share/$APPNAME/sql/datatest.sql | $MSQL
+     fi
   fi