Last active
July 16, 2020 12:59
-
-
Save wolfgangmm/5880377 to your computer and use it in GitHub Desktop.
eXist-db: reinstall dashboard and shared-resources if broken. Run the following query through eXide - or if this fails: the Java admin client.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repo:remove("http://exist-db.org/apps/shared"), | |
repo:remove("http://exist-db.org/apps/dashboard"), | |
repo:install-and-deploy("http://exist-db.org/apps/shared", "http://exist-db.org/exist/apps/public-repo/find"), | |
repo:install-and-deploy("http://exist-db.org/apps/dashboard", "http://exist-db.org/exist/apps/public-repo/find") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! Fixed "The actual return type does not match the sequence type" errors thrown by view.xql. Used slightly modified version to recover corrupt install by command line on headless development server, replacing internal quotes with single ticks for command line parsing.
echo "repo:remove('http://exist-db.org/apps/dashboard')" | ./bin/client.sh -s -u admin -P nothispw -x
and
echo "repo:install-and-deploy('http://exist-db.org/apps/dashboard', 'http://exist-db.org/exist/apps/public-repo/find')" | ./bin/client.sh -s -u admin -P notthispw -x