...
Code Block |
---|
wget -q -O medici.war "http://isda.ncsa.illinois.edu/download/get.php?project=MMDBMedici&category=web&version=v1.01&file=medici.war" unzip -q -d war medici.war cp medici.xml war/WEB-INF/classes/context.xml YOUREMAIL="your email address here" GOOGLEKEY="your google key here" sed -i -e "s#mail.from=lmarini@ncsa.illinois.edu#mail.from=$YOUREMAIL#g" \ -e "s/#user.0.email=/user.0.email=$YOUREMAIL/g" \ -e "s@search.index=.*@search.index=/home/medici/medici/lucene@g" war/WEB-INF/classes/server.properties sed -i -e "s#key=ABQIAAAASEElYb9IDDsAc5ZKA3a2sRQmgYtTImkVBc-VhblDgOLOdwhVaBSGMDSn-_9k3bx4tYolchXvrvB8Ag#key=$GOOGLEKEY#g" war/mmdb.html chown -R tomcat6 war mv war /var/lib/tomcat6/webapps/medici |
The second installation follows almost the same process but with a few changes.
Code Block |
---|
wget -q -O medici.war "http://isda.ncsa.illinois.edu/download/get.php?project=MMDB&category=web&version=v1.0&file=medici.war"
unzip -q -d war medici.war
cp onlyme.xml war/WEB-INF/classes/context.xml
YOUREMAIL="your email address here"
GOOGLEKEY="your google key here"
sed -i -e "s#mail.from=lmarini@ncsa.illinois.edu#mail.from=$YOUREMAIL#g" \
-e "s/#user.0.email=/user.0.email=$YOUREMAIL/g" \
-e "s@search.index=.*@search.index=/home/medici/medici/lucene@g" war/WEB-INF/classes/server.properties
sed -i -e "s#key=ABQIAAAASEElYb9IDDsAc5ZKA3a2sRQmgYtTImkVBc-VhblDgOLOdwhVaBSGMDSn-_9k3bx4tYolchXvrvB8Ag#key=$GOOGLEKEY#g" war/mmdb.html
chown -R tomcat6 war
mv war /var/lib/tomcat6/webapps/onlyme
|
...