debmaker/ressources/budibase/rootfs/DEBIAN/postinst

10 lines
358 B
Bash
Executable File

#!/bin/bash
id budibase-server &> /dev/null || useradd budibase-server -r -s /bin/false -md /var/lib/budibase-server
chown -R budibase-server:budibase-server /var/lib/budibase-server
id budibase-worker &> /dev/null || useradd budibase-worker -r -s /bin/false -md /var/lib/budibase-worker
chown -R budibase-worker:budibase-worker /var/lib/budibase-worker