Skip to content

Commit

Permalink
Include default username/password for triplestore and Solr indexing.
Browse files Browse the repository at this point in the history
- Remove fcrepo-audit feature from karaf script (tmp fix)

Related to: https://jira.duraspace.org/browse/FCREPO-1735
  • Loading branch information
whikloj authored and Andrew Woods committed Sep 30, 2015
1 parent 982af09 commit 0c6e9a1
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
1 change: 0 additions & 1 deletion install_scripts/fedora_camel_toolbox.script
@@ -1,6 +1,5 @@
feature:repo-add mvn:org.fcrepo.camel/fcrepo-camel-toolbox/LATEST/xml/features
feature:install fcrepo-indexing-solr
feature:install fcrepo-indexing-triplestore
feature:install fcrepo-audit-triplestore
feature:install fcrepo-reindexing
feature:install fcrepo-fixity
35 changes: 34 additions & 1 deletion install_scripts/fedora_camel_toolbox.sh
Expand Up @@ -12,6 +12,39 @@ fi

cd $HOME_DIR

/opt/karaf/bin/client < "$SHARED_DIR/install_scripts/fedora_camel_toolbox.script"
/opt/karaf/bin/client -u karaf -h localhost -a 8101 -f "$SHARED_DIR/install_scripts/fedora_camel_toolbox.script"

# Solr indexing
if [ ! -f "/opt/karaf/etc/org.fcrepo.camel.indexing.solr.cfg" ]; then
/opt/karaf/bin/client -u karaf -h localhost -a 8101 "feature:install fcrepo-indexing-solr"
fi
sed -i 's|solr.baseUrl=localhost:8983/solr/collection1|solr.baseUrl=localhost:8080/solr/collection1|' /opt/karaf/etc/org.fcrepo.camel.indexing.solr.cfg
sed -i 's|fcrepo.authUsername=$|fcrepo.authUsername=fedoraAdmin|' /opt/karaf/etc/org.fcrepo.camel.indexing.solr.cfg
sed -i 's|fcrepo.authPassword=$|fcrepo.authPassword=secret3|' /opt/karaf/etc/org.fcrepo.camel.indexing.solr.cfg

# Triplestore indexing
if [ ! -f "/opt/karaf/etc/org.fcrepo.camel.indexing.triplestore.cfg" ]; then
/opt/karaf/bin/client -u karaf -h localhost -a 8101 "feature:install fcrepo-indexing-triplestore"
fi
sed -i 's|fcrepo.authUsername=$|fcrepo.authUsername=fedoraAdmin|' /opt/karaf/etc/org.fcrepo.camel.indexing.triplestore.cfg
sed -i 's|fcrepo.authPassword=$|fcrepo.authPassword=secret3|' /opt/karaf/etc/org.fcrepo.camel.indexing.triplestore.cfg

# Audit service
if [ ! -f "/opt/karaf/etc/org.fcrepo.camel.audit.cfg" ]; then
/opt/karaf/bin/client -u karaf -h localhost -a 8101 "feature:install fcrepo-audit-triplestore"
fi

# Fixity service
if [ ! -f "/opt/karaf/etc/org.fcrepo.camel.fixity.cfg" ]; then
/opt/karaf/bin/client -u karaf -h localhost -a 8101 "feature:install fcrepo-fixity"
fi
sed -i 's|fcrepo.authUsername=$|fcrepo.authUsername=fedoraAdmin|' /opt/karaf/etc/org.fcrepo.camel.fixity.cfg
sed -i 's|fcrepo.authPassword=$|fcrepo.authPassword=secret3|' /opt/karaf/etc/org.fcrepo.camel.fixity.cfg

# Reindexing service
if [ ! -f "/opt/karaf/etc/org.fcrepo.camel.reindexing.cfg" ]; then
/opt/karaf/bin/client -u karaf -h localhost -a 8101 "feature:install fcrepo-reindexing"
fi
sed -i 's|fcrepo.authUsername=$|fcrepo.authUsername=fedoraAdmin|' /opt/karaf/etc/org.fcrepo.camel.reindexing.cfg
sed -i 's|fcrepo.authPassword=$|fcrepo.authPassword=secret3|' /opt/karaf/etc/org.fcrepo.camel.reindexing.cfg

2 changes: 1 addition & 1 deletion install_scripts/karaf.sh
Expand Up @@ -43,7 +43,7 @@ if [ ! -L "/etc/init.d/karaf-service" ]; then
# Run a setup script to add some feature repos and prepare it for running as a service
/opt/karaf/bin/start
sleep 60
/opt/karaf/bin/client < $SHARED_DIR/install_scripts/karaf_service.script
/opt/karaf/bin/client -f $SHARED_DIR/install_scripts/karaf_service.script
/opt/karaf/bin/stop

# Add it as a Linux service
Expand Down

0 comments on commit 0c6e9a1

Please sign in to comment.