@@ -129,8 +129,8 @@ def preBuild():
129
129
with open (r'%s' % buildSettings ) as objBuildSettingsFile :
130
130
nextCloudYamlBuildOptions = yaml .load (objBuildSettingsFile )
131
131
if (
132
- nextCloudYamlBuildOptions ["databasePasswordOption" ] == "Randomise database passwords for this build"
133
- or nextCloudYamlBuildOptions ["databasePasswordOption" ] == "Randomise database passwords every build"
132
+ nextCloudYamlBuildOptions ["databasePasswordOption" ] == "Randomise passwords for this build"
133
+ or nextCloudYamlBuildOptions ["databasePasswordOption" ] == "Randomise passwords every build"
134
134
or nextCloudYamlBuildOptions ["databasePasswordOption" ] == "Use default passwords for this build"
135
135
):
136
136
if nextCloudYamlBuildOptions ["databasePasswordOption" ] == "Use default passwords for this build" :
@@ -148,7 +148,7 @@ def preBuild():
148
148
dockerComposeServicesYaml [serviceName ]["environment" ][envIndex ] = envName .replace ("%randomPassword%" , mySqlRootPassword )
149
149
150
150
# Ensure you update the "Do nothing" and other 2 strings used for password settings in 'passwords.py'
151
- if (nextCloudYamlBuildOptions ["databasePasswordOption" ] == "Randomise database passwords for this build" ):
151
+ if (nextCloudYamlBuildOptions ["databasePasswordOption" ] == "Randomise passwords for this build" ):
152
152
nextCloudYamlBuildOptions ["databasePasswordOption" ] = "Do nothing"
153
153
with open (buildSettings , 'w' ) as outputFile :
154
154
yaml .dump (nextCloudYamlBuildOptions , outputFile )
@@ -181,7 +181,6 @@ def preBuild():
181
181
with open (buildSettings , 'w' ) as outputFile :
182
182
yaml .dump (nextCloudYamlBuildOptions , outputFile )
183
183
184
-
185
184
return True
186
185
187
186
# #####################################
0 commit comments