IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 28, 2017, 12:49:44 PM (9 years ago)
Author:
eugene
Message:

check on dvo config, pass in camera for relphot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/test/mkgpc1.sh

    r40218 r40221  
    1212
    1313  mysql -h $dbhost -u root -p -e "grant all on *.* to $dbuser@"$dbhost" identified by '$dbpass'"
     14  exit 0;
     15endif
     16
     17if ("$1" == "user.sudo") then
     18  if ($#argv != 4) goto usage;
     19  set dbhost = $2
     20  set dbuser = $3
     21  set dbpass = $4
     22
     23  sudo mysql -h $dbhost -u root -p -e "grant all on *.* to $dbuser@"$dbhost" identified by '$dbpass'"
    1424  exit 0;
    1525endif
     
    118128  echo "      delete an existing test db (enter pass 3x)"
    119129  echo ""
     130  echo "  mkgpc1.sh forcedelete (dbhost) (dbname) (dbuser) [dbpass]"
     131  echo "      delete an existing test db (enter pass 3x), even if the number of tables is wrong"
     132  echo ""
    120133  echo "  mkgpc1.sh user (dbhost) (dbuser) (password)"
    121134  echo "      create a new user and password for the test db"
    122135  echo ""
     136  echo "  mkgpc1.sh user.sudo (dbhost) (dbuser) (password)"
     137  echo "      create a new user and password for the test db, using sudo mysql"
     138  echo "      (this option is needed if your mysql installation uses the auth_socket plugin"
     139  echo ""
    123140  exit 2
Note: See TracChangeset for help on using the changeset viewer.