diff options
author | Mike Williamson | 2016-08-23 11:55:46 -0400 |
---|---|---|
committer | Mike Williamson | 2016-08-23 11:55:46 -0400 |
commit | 5f7e6055fd6613bb10d0673066813896b36ff875 (patch) | |
tree | 249ae037094918e84372fa2ec4d48150e3ab65e8 /arangodb.install | |
parent | 9d3c0f6af51496cf46c5e02df8ec1e1b1a5cdf01 (diff) | |
download | aur-5f7e6055fd6613bb10d0673066813896b36ff875.tar.gz |
Update to 3.0.5
This commit fixes problems with paths by compiling with the proper cmake
settings.
Diffstat (limited to 'arangodb.install')
-rw-r--r-- | arangodb.install | 48 |
1 files changed, 33 insertions, 15 deletions
diff --git a/arangodb.install b/arangodb.install index c4589bd608a1..35bd9f55ab30 100644 --- a/arangodb.install +++ b/arangodb.install @@ -4,41 +4,59 @@ pre_install() { /usr/share/arangodb -s /bin/false -c "ArangoDB Application User" \ arangodb - install -o arangodb -g arangodb -m 755 -d /var/lib/arangodb - install -o arangodb -g arangodb -m 755 -d /var/lib/arangodb-apps - install -o arangodb -g arangodb -m 755 -d /var/log/arangodb - install -o arangodb -g arangodb -m 755 -d /var/run/arangodb + install -o arangodb -g arangodb -m 755 -d "/var/lib/arangodb3" + install -o arangodb -g arangodb -m 755 -d "/var/lib/arangodb3-apps" + install -o arangodb -g arangodb -m 755 -d "/var/log/arangodb3" + install -o arangodb -g arangodb -m 755 -d "/var/run/arangodb3" } post_install() { - chown -R arangodb:arangodb /var/lib/arangodb &> /dev/null - chown -R arangodb:arangodb /var/lib/arangodb-apps &> /dev/null - chown -R arangodb:arangodb /var/log/arangodb &> /dev/null + chown -R arangodb:arangodb "/var/lib/arangodb3" &> /dev/null + chown -R arangodb:arangodb "/var/lib/arangodb3-apps" &> /dev/null + chown -R arangodb:arangodb "/var/log/arangodb3" &> /dev/null cat <<-EOF Welcome to ArangoDB. - To get started you will need to enable and start the service: + To get started you will need to tell systemd to reload it's unit + files, then enable and start the service: + sudo systemctl daemon-reload sudo systemctl enable arangodb.service sudo systemctl start arangodb.service - Then you can access the administrative interface at: + ArangoDB 3 ships with authentication enabled. To use it you will need + to start the server with 'authentication = false' in the following + files: - http://localhost:8529 + /etc/arangodb3/arangosh.conf + /etc/arangodb3/arangod.conf - or try things out at the shell: + Then set the passwords and create the users you need: $> arangosh + 127.0.0.1:8529@_system> require("org/arangodb/users").update("root", + "mypassword") + 127.0.0.1:8529@_system> require("org/arangodb/users").save("myuser", + "mypassword"); + + Set the 'authentication = true' and then restart ArangoDB: + + sudo systemctl restart arangodb.service + + You can now use your username and password to access the + administrative interface at: + + http://localhost:8529 + Getting help: http://stackoverflow.com/questions/tagged/arangodb - https://groups.google.com/forum/#!forum/arangodb - https://docs.arangodb.com/cookbook/ - https://docs.arangodb.com/ - #arangodb on irc.freenode.net + https://arangodb-community.slack.com + https://docs.arangodb.com/cookbook + https://docs.arangodb.com EOF } |