mirror of https://gitee.com/bigwinds/arangodb
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:
parent
5477e64a35
commit
f5b63d1c6c
|
@ -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."
|
||||
|
|
|
@ -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 ""
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue