summarylogtreecommitdiffstats
path: root/sslh.install
blob: f430f84cdac19514096d23ccd5fd0ebecb8200a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  if (( "$(vercmp $2 1.14-1)" <= 0 )); then
    cat << EOF
===> sslh systemd service has been splitted in sslh-fork.service and sslh-select.service
EOF
  fi
  if (( "$(vercmp $2 1.16-3)" < 0 )); then
    cat << EOF
===> sslh may runs as unprivileged sslh user. Check your setup.
EOF
  fi
  if (( "$(vercmp $2 1.19b)" < 0 )); then
    cat << EOF
===> Default config path is now /etc/sslh.cfg (as required by systemd generator)
=====> Rename your /etc/sslh.conf into /etc/sslh.cfg
===> sslh unit files security has been improved.
=====> You may need to remove the PIDfile option in your /etc/sslh.cfg.
===> sslh user is now created at unit startup (via DynamicUser)
EOF
  fi
}

post_install() {
    echo "/etc/sslh/default.cfg editing is required!"
    echo "Details: https://github.com/yrutschle/sslh/blob/master/doc/config.md"
    echo "Don't forget execute 'systemctl daemon-reload' and 'systemctl restart sslh.socket' after editing."
}

# vim:set ts=2 sw=2 ft=sh et: