Align naming of Debian packages

Rename pvc-daemon to pvc-daemon-node and pvc-api to pvc-daemon-api.

Closes #79
This commit is contained in:
2020-02-08 18:58:36 -05:00
parent 4505b239eb
commit 97e318a2ca
8 changed files with 2 additions and 2 deletions

20
debian/pvc-daemon-api.postinst vendored Normal file
View File

@ -0,0 +1,20 @@
#!/bin/sh
# Install client binary to /usr/bin via symlink
ln -s /usr/share/pvc/api.py /usr/bin/pvc-api
# Reload systemd's view of the units
systemctl daemon-reload
# Restart the main daemon (or warn on first install)
if systemctl is-active --quiet pvc-api.service; then
systemctl restart pvc-api.service
else
echo "NOTE: The PVC client API daemon (pvc-api.service) has not been started; create a config file at /etc/pvc/pvc-api.yaml then start it."
fi
# Restart the worker daemon (or warn on first install)
if systemctl is-active --quiet pvc-provisioner-worker.service; then
systemctl restart pvc-provisioner-worker.service
else
echo "NOTE: The PVC provisioner worker daemon (pvc-provisioner-worker.service) has not been started; create a config file at /etc/pvc/pvc-api.yaml then start it."
fi