diff options
Diffstat (limited to 'packaging/deb/meshbay-hub/DEBIAN/postinst')
| -rw-r--r-- | packaging/deb/meshbay-hub/DEBIAN/postinst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packaging/deb/meshbay-hub/DEBIAN/postinst b/packaging/deb/meshbay-hub/DEBIAN/postinst index 48921f2..3cf66a9 100644 --- a/packaging/deb/meshbay-hub/DEBIAN/postinst +++ b/packaging/deb/meshbay-hub/DEBIAN/postinst @@ -13,15 +13,16 @@ case "$1" in --gecos "MeshBay service account" meshbay fi - # Create data directory + # Create data and log directories install -d -o meshbay -g meshbay -m 750 /var/lib/meshbay/hub install -d -o meshbay -g meshbay -m 750 /var/log/meshbay - # Enable and start service + # Create config directory (files are placed by the admin, not by us) + install -d -m 755 /etc/meshbay + + # Reload systemd if available if [ -d /run/systemd/system ]; then systemctl daemon-reload || true - systemctl enable meshbay-hub.service || true - systemctl start meshbay-hub.service || true fi ;; esac |