go-paste/debian/ROOT/DEBIAN/postinst
2018-08-06 12:37:50 -06:00

18 lines
287 B
Bash
Executable File

#!/bin/sh
set -e
case "$1" in
configure)
systemctl daemon-reload
if systemctl is-enabled sour.is-paste.service; then
systemctl start sour.is-paste.service
fi
sudo chown -R root:root /opt/sour.is
sudo chown -R root:root /etc/opt/sour.is
;;
esac
exit 0