1
0
Fork 0

when setting the password force various features in arangod to be turned off so they don't get in our way.

This commit is contained in:
Wilfried Goesgens 2017-05-16 15:55:11 +02:00
parent 5477e64a35
commit f5b63d1c6c
3 changed files with 3 additions and 2 deletions

View File

@ -876,7 +876,7 @@ noServiceToStop:
System::Call 'Kernel32::SetEnvironmentVariable(t, t)i ("ARANGODB_DEFAULT_ROOT_PASSWORD", "$PASSWORD").r0'
StrCmp $0 0 error
ExecWait "$INSTDIR\${SBIN_DIR}\arangod.exe --database.init-database"
ExecWait "$INSTDIR\${SBIN_DIR}\arangod.exe --database.init-database --server.rest-server false --server.statistics false --foxx.queues false"
Goto done
error:
MessageBox MB_OK "Failed to initialize database password."

View File

@ -17,6 +17,7 @@ if [ "$1" = "configure" -a -z "$2" ]; then
if [ -n "$RET" ]; then
ARANGODB_DEFAULT_ROOT_PASSWORD=`echo $RET|sed -e 's;\\\\;\\\\\\\\;g' -e 's;";\\\\";g'` \
/usr/sbin/arango-init-database \
--server.rest-server false --server.statistics false --foxx.queues false \
--uid arangodb --gid arangodb || true
fi
db_set @CPACK_PACKAGE_NAME@/password_again ""

View File

@ -263,7 +263,7 @@ echo "the current password is $ARANGODB_DEFAULT_ROOT_PASSWORD"
echo "(in case this a FRESH install, for UPGRADE the password"
echo "will not be changed)"
/usr/sbin/arango-init-database --uid arangodb --gid arangodb || true
/usr/sbin/arango-init-database --uid arangodb --gid arangodb --server.rest-server false --server.statistics false --foxx.queues false" || true
exit 0