Skip to content

Commit f076072

Browse files
anthony-chudrewbrokke
authored andcommitted
LPD-69532 Only use listAdminUsers when database will be populated
1 parent 0d4e0c8 commit f076072

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

buildSrc/src/main/groovy/docker-liferay-bundle.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,9 @@ tasks.register("listAdminUsers") {
311311
onlyIf("using an external database") {
312312
config.useDatabase
313313
}
314+
onlyIf("database is not empty") {
315+
!Util.isEmpty(project.fileTree("dumps")) || !Util.isEmpty(project.fileTree(config.dataDirectory)) || config.useLiferay
316+
}
314317

315318
Closure<Void> listAdminUsersForCompany = {
316319
String companyId, String hostname, String webId, String schema ->

0 commit comments

Comments
 (0)