summarylogtreecommitdiffstats
path: root/wirehub.install
blob: 332a315263e73a21af301f387ce726fb509d513a (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash

post_install() {
  if ! test -f /etc/wirehub/config.sk
  then
    wh genkey | tee /etc/wirehub/config.sk | wh pubkey | tee /etc/wirehub/config.k
    chmod 0600 /etc/wirehub/config.sk
    chmod 0644 /etc/wirehub/config.k
  fi
}