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-node.postinst vendored Normal file
View File

@ -0,0 +1,20 @@
#!/bin/sh
# Reload systemd's view of the units
systemctl daemon-reload
# Enable the service and target
systemctl enable /lib/systemd/system/pvcd.service
systemctl enable /lib/systemd/system/pvcd.target
# Inform administrator of the autoflush daemon if it is not enabled
if ! systemctl is-active --quiet pvc-flush.service; then
echo "NOTE: The PVC autoflush daemon (pvc-flush.service) is not enabled by default; enable it to perform automatic flush/unflush actions on host shutdown/startup."
fi
# Inform administrator of the service restart/startup not occurring automatically
if systemctl is-active --quiet pvcd.service; then
echo "NOTE: The PVC node daemon (pvcd.service) has not been restarted; this is up to the administrator."
else
echo "NOTE: The PVC node daemon (pvcd.service) has not been started; create a config file at /etc/pvc/pvcd.yaml then start it."
fi