Changeset 38208
- Timestamp:
- Apr 28, 2015, 2:54:20 PM (11 years ago)
- Location:
- trunk/ippMonitor
- Files:
-
- 1 added
- 2 edited
-
config.dat.in (added)
-
configure.tcsh (modified) (5 diffs)
-
raw/site.php.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/configure.tcsh
r27113 r38208 10 10 11 11 set htdocs = "" 12 set dbhost = ""13 set dbuser = ""14 set dbpass = ""12 # set dbhost = "" 13 # set dbuser = "" 14 # set dbpass = "" 15 15 16 16 set prefix = "" … … 52 52 endif 53 53 breaksw; 54 case --dbhost*55 if ("$1" == "--dbhost") then56 shift57 set dbhost = $158 else59 set dbhost = `echo $1 | tr = ' ' | awk '{print $2}'`60 endif61 breaksw;62 case --dbuser*63 if ("$1" == "--dbuser") then64 shift65 set dbuser = $166 else67 set dbuser = `echo $1 | tr = ' ' | awk '{print $2}'`68 endif69 breaksw;70 case --dbpass*71 if ("$1" == "--dbpass") then72 shift73 set dbpass = $174 else75 set dbpass = `echo $1 | tr = ' ' | awk '{print $2}'`76 endif77 breaksw;54 # case --dbhost* 55 # if ("$1" == "--dbhost") then 56 # shift 57 # set dbhost = $1 58 # else 59 # set dbhost = `echo $1 | tr = ' ' | awk '{print $2}'` 60 # endif 61 # breaksw; 62 # case --dbuser* 63 # if ("$1" == "--dbuser") then 64 # shift 65 # set dbuser = $1 66 # else 67 # set dbuser = `echo $1 | tr = ' ' | awk '{print $2}'` 68 # endif 69 # breaksw; 70 # case --dbpass* 71 # if ("$1" == "--dbpass") then 72 # shift 73 # set dbpass = $1 74 # else 75 # set dbpass = `echo $1 | tr = ' ' | awk '{print $2}'` 76 # endif 77 # breaksw; 78 78 case --prefix* 79 79 if ("$1" == "--prefix") then … … 142 142 echo "site: $site" 143 143 echo "htdocs: $htdocs" 144 echo "dbhost: $dbhost"145 echo "dbuser: $dbuser"146 echo "dbpass: $dbpass"144 # echo "dbhost: $dbhost" 145 # echo "dbuser: $dbuser" 146 # echo "dbpass: $dbpass" 147 147 echo "DBI: $DBI" 148 148 echo 149 149 150 150 if ("$htdocs" == "") goto usage 151 if ("$dbhost" == "") goto usage152 if ("$dbuser" == "") goto usage153 if ("$dbpass" == "") goto usage151 # if ("$dbhost" == "") goto usage 152 # if ("$dbuser" == "") goto usage 153 # if ("$dbpass" == "") goto usage 154 154 155 155 # BINDIR holds the output binary files … … 187 187 # convert raw/site.php.in to raw/site.php 188 188 if (-e raw/site.php) mv -f raw/site.php raw/site.php~ 189 cat raw/site.php.in | sed "s|@DBHOST@|$dbhost|" > tmp.1 190 cat tmp.1 | sed "s|@DBUSER@|$dbuser|" > tmp.2 191 cat tmp.2 | sed "s|@DBPASS@|$dbpass|" > tmp.1 192 cat tmp.1 | sed "s|@BINDIR@|$bindir|" > tmp.2 189 cat raw/site.php.in | sed "s|@BINDIR@|$bindir|" > tmp.2 193 190 cat tmp.2 | sed "s|@LIBDIR@|$libdir|" > tmp.1 194 191 cat tmp.1 | sed "s|@PERLLIB@|$libdir|" > tmp.2 195 192 cat tmp.2 | sed "s|@SITE@|$site|" > tmp.1 196 193 cat tmp.1 | sed "s|@DBI@|$DBI|" > tmp.2 197 cat tmp.2 | sed "s|@HOST@|$hostname|" > raw/site.php 194 cat tmp.2 | sed "s|@HOST@|$hostname|" > tmp.1 195 awk 'BEGIN{t = 0}((t == 0) && ($1 != "@CONFIG.DAT@")){print $0}($1 == "@CONFIG.DAT@"){t = 1}' tmp.1 > raw/site.php 196 cat config.dat >> raw/site.php 197 awk 'BEGIN{t = 0}(t == 1){print $0}($1 == "@CONFIG.DAT@"){t = 1}' tmp.1 >> raw/site.php 198 198 199 rm -f tmp.1 tmp.2 199 200 … … 213 214 set the IPP installation directory root with --prefix 214 215 215 set the database host, user, password with: --dbhost, --dbuser, -dbpass216 216 set the site.php file based on config.dat in this directory 217 217 218 either --prefix or both --bindir and --libdir and [--datadir or --site] are required 218 219 -
trunk/ippMonitor/raw/site.php.in
r38200 r38208 2 2 3 3 $WWWHOST = "@HOST@"; 4 $DBHOST = "@DBHOST@";5 $DBUSER = "@DBUSER@";6 $DBPASS = "@DBPASS@";7 4 8 5 $PERLLIB = "@PERLLIB@"; … … 16 13 $DBI = "@DBI@"; 17 14 18 // Temporary files belonging to DELETION_USER and older than 19 // DELETION_DELAY minutes will be delayed by the 20 // delete_old_tmp_files() function (see raw/ipp.php) 21 $DELETION_USER = "apache"; 22 $DELETION_DELAY = 15; 23 24 $REPL_HOST_IPPADMIN = "ipp0012.IfA.Hawaii.Edu"; 25 $REPL_USER_IPPADMIN = "ippMonitor"; 26 $REPL_PASSWORD_IPPADMIN = "ippMonitor"; 27 $REPL_DBNAME_IPPADMIN = "ipp001 (gpc1, isp, ippadmin, czardb, ipptopsps, megacam, ssp, uip)" ; 28 29 $REPL_HOST_NEBULOUS = "ippdb02.IfA.Hawaii.Edu"; 30 $REPL_USER_NEBULOUS = "ippMonitor"; 31 $REPL_PASSWORD_NEBULOUS = "ippMonitor"; 32 $REPL_DBNAME_NEBULOUS = "ippdb02 (nebulous / 50,000 sec behind is acceptable / usually stopped on Mondays and Tuesdays for backups)"; 33 34 $REPL_HOST_PSTAMP = "ippc19.IfA.Hawaii.Edu"; 35 $REPL_USER_PSTAMP = "ippMonitor"; 36 $REPL_PASSWORD_PSTAMP = "ippMonitor"; 37 $REPL_DBNAME_PSTAMP = "ippc19 (ippRequestServer)"; 38 39 $REPL_HOST_GPC1 = "ippdb03.IfA.Hawaii.Edu"; 40 $REPL_USER_GPC1 = "ippMonitor"; 41 $REPL_PASSWORD_GPC1 = "ippMonitor"; 42 $REPL_DBNAME_GPC1 = "ippdb03 (czardb, gpc1, ippadmin, ipptopsps, megacam, skycells, ssp, uip)"; 43 44 $REPL_HOST_ISP = "ippc17.IfA.Hawaii.Edu"; 45 $REPL_USER_ISP = "ippMonitor"; 46 $REPL_PASSWORD_ISP = "ippMonitor"; 47 $REPL_DBNAME_ISP = "ippc17 (isp)"; 48 49 $REPL_HOST_NEBULOUS_SECONDARY = "ippdb06.IfA.Hawaii.Edu"; 50 $REPL_USER_NEBULOUS_SECONDARY = "ippMonitor"; 51 $REPL_PASSWORD_NEBULOUS_SECONDARY = "ippMonitor"; 52 $REPL_DBNAME_NEBULOUS_SECONDARY = "ippdb06 (secondary nebulous)"; 15 // insert config.dat here 16 @CONFIG.DAT@ 53 17 54 18 ?>
Note:
See TracChangeset
for help on using the changeset viewer.
