Changeset 37296
- Timestamp:
- 2023-02-07T23:36:58+13:00 (15 months ago)
- Location:
- gs2-extensions/apache-jena/trunk/src
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/apache-jena/trunk/src/INSTALL-FUSEKI3-WAR.sh
r37274 r37296 11 11 fi 12 12 13 if [ ! -f run3/ shiro.ini ] || [ src3/run--shiro.ini -nt run3/shiro.ini] ; then14 echo "Copying c ustomized runtime shiro authentication file:"15 echo " src3/run--shiro.ini -> run3/shiro.ini"16 /bin/cp src3/run--shiro.ini run3/shiro.ini13 if [ ! -f run3/config.ttl ] || [ run3.in/config.ttl -nt run3/config.ttl ] ; then 14 echo "Copying config.ttl" 15 echo " run3.in/config.ttl -> run3/config.ttl" 16 /bin/cp run3.in/config.ttl run3/config.ttl 17 17 fi 18 18 19 if [ ! - f run3/templates/config-tdb-dir ] || [ src3/run-templates--config-tdb-dir -nt run3/templates/config-tdb-dir] ; then20 echo "Copying customized TDB config file (allowing unionDefaultGraph):"21 echo " src3/run-templates--config-tdb-dir run3/templates/config-tdb-dir"19 if [ ! -d run3/templates ] ; then 20 echo "Copying templates dir (customised setting unionDefaultGraph to true):" 21 echo " run3.in/templates/* run3/templates/." 22 22 if [ ! -d run3/templates ] ; then 23 23 mkdir run3/templates 24 24 fi 25 /bin/cp src3/run-templates--config-tdb-dir run3/templates/config-tdb-dir 25 /bin/cp run3.in/templates/* run3/templates/. 26 fi 27 28 29 for full_f in run3.in/templates/* ; do 30 f=${full_f##*/} 31 32 if [ run3.in/templates/$f -nt run3/templates/$f ] ; then 33 echo "Updating tempaltes config file" 34 echo " run3.in/templates/$f run3/templates/$f" 35 /bin/cp run3.in/templates/$f run3/templates/$f 36 fi 37 done 38 39 if [ ! -f run3/shiro.ini ] || [ run3.in/shiro.ini -nt run3/shiro.ini ] ; then 40 echo "Copying customized runtime shiro authentication file:" 41 echo " run3.in/shiro.ini -> run3/shiro.ini" 42 /bin/cp run3.in/shiro.ini run3/shiro.ini 26 43 fi 27 44 … … 38 55 || [ "$FUSEKI_HOME/fuseki.war" -nt "$GSDL3SRCHOME/packages/tomcat/webapps/fuseki3.war" ] ; then 39 56 57 echo "" 40 58 echo "Copying: " 41 59 echo " $FUSEKI_HOME/fuseki.war" … … 44 62 /bin/cp "$FUSEKI_HOME/fuseki.war" "$GSDL3SRCHOME/packages/tomcat/webapps/fuseki3.war" 45 63 else 64 echo "" 46 65 echo "Installed war file is up to date" 47 66 fi 48 67 49 echo ""50 echo "Testing to see if /greenstone dataset exists already (ping)"51 gs-triplestore-dataset-ping3 /greenstone52 53 if [ $? != 0 ] ; then54 # Did not find dataset55 echo "" >&256 echo "Warning: Did not find Fuseki dataset /greenstone" >&257 echo "Could be the dataset doesn't exist, or because the server isn't running" >&258 echo "" >&259 60 echo -n "Do you want to create /greenstone? [y/n]: "61 read create_dataset62 63 if [ "x$create_dataset" != "x" ] ; then64 if [ "$create_dataset" = "y" ] || [ "$create_dataset" = "Y" ] ; then65 #echo "Run the following:"66 #echo " " gs-triplestore-dataset-create3 /greenstone67 echo "Creating the /greenstone dataset"68 gs-triplestore-dataset-create3 /greenstone69 fi70 fi71 72 fi73 68 74 69 echo "" 75 70 71 echo "****" 72 echo "* If this is the first time you've install fuseki3.war, now run:" 73 echo "* ./CREATE-GREENSTONE-DATASET.sh" 74 echo "****" 75 echo "" 76
Note:
See TracChangeset
for help on using the changeset viewer.