featurebase/install/preinstall.sh
Julio Martinez 94a5721d05
Fixed broken fields when packaging rpm and deb files. (#2153)
* 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.
2022-07-27 12:54:46 -05:00

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