Changeset 37296


Ignore:
Timestamp:
2023-02-07T23:36:58+13:00 (15 months ago)
Author:
davidb
Message:

Updated install scripting

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  
    1111fi
    1212
    13 if [ ! -f run3/shiro.ini ] || [ src3/run--shiro.ini -nt run3/shiro.ini ] ; then
    14     echo "Copying customized runtime shiro authentication file:"
    15     echo "  src3/run--shiro.ini -> run3/shiro.ini"
    16     /bin/cp src3/run--shiro.ini run3/shiro.ini
     13if [ ! -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
    1717fi
    1818
    19 if [ ! -f run3/templates/config-tdb-dir ] || [ src3/run-templates--config-tdb-dir -nt run3/templates/config-tdb-dir ] ; then
    20     echo "Copying customized TDB config file (allowing unionDefaultGraph):"
    21     echo "    src3/run-templates--config-tdb-dir run3/templates/config-tdb-dir"
     19if [ ! -d run3/templates ] ; then
     20    echo "Copying templates dir (customised setting unionDefaultGraph to true):"
     21    echo "    run3.in/templates/* run3/templates/."
    2222    if [ ! -d run3/templates ] ; then
    2323    mkdir run3/templates
    2424    fi
    25     /bin/cp src3/run-templates--config-tdb-dir run3/templates/config-tdb-dir
     25    /bin/cp run3.in/templates/* run3/templates/.
     26fi
     27
     28
     29for 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
     37done
     38
     39if [ ! -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
    2643fi
    2744
     
    3855       || [ "$FUSEKI_HOME/fuseki.war" -nt "$GSDL3SRCHOME/packages/tomcat/webapps/fuseki3.war" ] ; then
    3956
     57    echo ""
    4058    echo "Copying: "
    4159    echo "    $FUSEKI_HOME/fuseki.war"
     
    4462    /bin/cp "$FUSEKI_HOME/fuseki.war" "$GSDL3SRCHOME/packages/tomcat/webapps/fuseki3.war"
    4563else
     64    echo ""
    4665    echo "Installed war file is up to date"
    4766fi
    4867
    49 echo ""
    50 echo "Testing to see if /greenstone dataset exists already (ping)"
    51 gs-triplestore-dataset-ping3 /greenstone
    52 
    53 if [ $? != 0 ] ; then
    54     # Did not find dataset
    55     echo "" >&2
    56     echo "Warning: Did not find Fuseki dataset /greenstone" >&2
    57     echo "Could be the dataset doesn't exist, or because the server isn't running" >&2
    58     echo "" >&2
    59 
    60     echo -n "Do you want to create /greenstone? [y/n]: "
    61     read create_dataset
    62 
    63     if [ "x$create_dataset" != "x" ] ; then
    64     if [ "$create_dataset" = "y" ] ||  [ "$create_dataset" = "Y" ] ; then
    65         #echo "Run the following:"
    66         #echo "    " gs-triplestore-dataset-create3 /greenstone
    67         echo "Creating the /greenstone dataset"
    68         gs-triplestore-dataset-create3 /greenstone
    69     fi
    70     fi
    71    
    72 fi
    7368
    7469echo ""
    7570
     71echo "****"
     72echo "* If this is the first time you've install fuseki3.war, now run:"
     73echo "*     ./CREATE-GREENSTONE-DATASET.sh"
     74echo "****"
     75echo ""
     76
Note: See TracChangeset for help on using the changeset viewer.