You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@muuki88 most of this stuff is outdated, I was wondering what today would be the best way to have this home directory created
this is my current solution
maintainerScripts in Debian := maintainerScriptsAppend((maintainerScripts in Debian).value)(
DebianConstants.Postinst -> s"mkdir /home/${(daemonUser in Linux).value}; chown ${(daemonUser in Linux).value}:${(daemonUser in Linux).value} /home/${(daemonUser in Linux).value}"
)
@francisdb thanks for sharing. I like the idea of creating a home directory explicitly. I wonder if this would be a nice idea for a small archetype, e.g. CreateHomeDirectoryPlugin, which adds this piece of code to rpm and debian. Or if we just put it in the docs.
@muuki88 I'm more fan of having an option for --create-home on the useradd command as that probably uses an os-specific template for the home directory instead of an empty folder
I was looking to create a home directory for the daemonUser.
I tried to modify some of the debian templates in the following way:
b/module/src/templates/postinst-useradd
b/module/src/DEBIAN/postrm-purge
Alternately, I would use a 'createHomeDirectory in Debian' settingKey.
The text was updated successfully, but these errors were encountered: