debmaker/ressources/budibase/rootfs/DEBIAN/postinst

10 lines
358 B
Plaintext
Raw Normal View History

2022-10-10 22:47:48 +02:00
#!/bin/bash
2023-01-01 23:02:32 +01:00
id budibase-server &> /dev/null || useradd budibase-server -r -s /bin/false -md /var/lib/budibase-server
2022-10-10 22:47:48 +02:00
chown -R budibase-server:budibase-server /var/lib/budibase-server
2023-01-01 23:02:32 +01:00
id budibase-worker &> /dev/null || useradd budibase-worker -r -s /bin/false -md /var/lib/budibase-worker
2022-10-10 22:47:48 +02:00
chown -R budibase-worker:budibase-worker /var/lib/budibase-worker