diff options
author | fuero | 2019-06-21 17:10:23 +0200 |
---|---|---|
committer | fuero | 2019-06-21 17:10:23 +0200 |
commit | 369dad8310febfbab4bbba02c8b03ca846e8be60 (patch) | |
tree | d37bcd516d328a4cd93f2aa0ebd76bcfcc031c09 /wirehub.install | |
download | aur-wirehub.tar.gz |
initial commit
Diffstat (limited to 'wirehub.install')
-rw-r--r-- | wirehub.install | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/wirehub.install b/wirehub.install new file mode 100644 index 000000000000..332a315263e7 --- /dev/null +++ b/wirehub.install @@ -0,0 +1,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 +} |