#!/bin/bash

source /usr/lib/secdist.sh
yav-deploy --debug --rsa-login $user --file /etc/push-client/secrets.conf

chown statbox:root /var/lib/push-client-so-mail/ || true
chown statbox:root /var/lib/push-client-delivery/ || true
chown statbox:root /var/lib/push-client-mail/ || true
chown statbox:root /var/lib/push-client-historydb/ || true
chown statbox:root /var/lib/push-client-userjournal/ || true

service statbox-push-client start
