mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-06 00:25:55 +00:00
* Fixed broken fields when packaging rpm and deb files. * Update systemd unit files, package them into RPM's. * Fix config file path for packages. * Changed unit and binary paths to conform to standard locations for each vendor. * Added featurebase owned directories. * Create featrebase user/group and chown the right dirs * Automate turning on featurebase * Updated the .gitignore to include .vscode files. * Changed RPM name to better conform to naming standards. * Pass GOARCH when building RPM's. * Avoid using recursive to remove files in this dir.
12 lines
297 B
Bash
Executable file
12 lines
297 B
Bash
Executable file
#!/bin/sh
|
|
|
|
USERNAME=featurebase
|
|
GROUPNAME=featurebase
|
|
HOMEDIR=/var/lib/molecula
|
|
|
|
getent group $GROUPNAME >/dev/null || groupadd -r $GROUPNAME
|
|
getent passwd $USERNAME >/dev/null || \
|
|
useradd -r -g $GROUPNAME -d $HOMEDIR -s /sbin/nologin \
|
|
-c "Featurebase Service Account" $USERNAME
|
|
|
|
exit 0
|