user2738882
user2738882

Reputation: 1190

Create empty directory in RPM using gradle.buildRpm

I'm using com.netflix.nebula:gradle-ospackage-plugin:5.1.0 plugin for Gradle to pack distribution into RPM.

Now I need to create an empty dir inside RPM. How can I do it?

Upvotes: 0

Views: 570

Answers (1)

user2738882
user2738882

Reputation: 1190

I've found the answer in documentation: Specifies directory that should be created within package.

directory(String path, int permissions)

However, there is not mention where to apply such property. directory will work in buildRpm section only and this is very important:

buildRpm {
...
directory('/opt/hazelcast-srv/logs')

}

Upvotes: 1

Related Questions