Skip to content

Commit

Permalink
write /etc/gluu/conf/gluu.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Jun 25, 2018
1 parent 464a082 commit 6c95171
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion setup.py
Expand Up @@ -2255,6 +2255,11 @@ def configureSystem(self):
self.createUsers()
self.makeFolders()

if self.install_couchbase:
self.writePersistType('couchbase')
else:
self.writePersistType('ldap')

def make_salt(self):
try:
f = open("%s/salt" % self.configFolder, 'w')
Expand All @@ -2270,6 +2275,16 @@ def make_oxauth_salt(self):
self.pairwiseCalculationKey = self.genRandomString(random.randint(20,30))
self.pairwiseCalculationSalt = self.genRandomString(random.randint(20,30))


def writePersistType(self, ptype):
self.logIt("Writing persist type")
fname = os.path.join(self.configFolder, 'gluu.properties')
fcontent = 'persistence.type={}'.format(ptype)

print "writing", fname, fcontent

self.writeFile(fname, fcontent)

def promptForProperties(self):

promptForMITLicense = self.getPrompt("Do you acknowledge that use of the Gluu Server is under the MIT license?","N|y")[0].lower()
Expand Down Expand Up @@ -2370,7 +2385,6 @@ def promptForProperties(self):
else:
option = 1


if option == 1:
self.ldap_type = 'opendj'
elif option == 2:
Expand Down

0 comments on commit 6c95171

Please sign in to comment.