summarylogtreecommitdiffstats
path: root/pertino.install
diff options
context:
space:
mode:
Diffstat (limited to 'pertino.install')
-rw-r--r--pertino.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/pertino.install b/pertino.install
new file mode 100644
index 000000000000..babad75efdfb
--- /dev/null
+++ b/pertino.install
@@ -0,0 +1,16 @@
+post_install() {
+ systemctl enable pgateway
+ systemctl start pgateway
+ echo "To authenticate, run: pertino -u <username> -p <password>"
+}
+
+post_upgrade() {
+ systemctl daemon-reload
+}
+
+pre_remove() {
+ systemctl stop pgateway
+ systemctl disable pgateway
+ rm -f /usr/share/pertino/.1
+ rm -f /usr/share/pertino/tunnel-store.txt
+}