blob: 23bc17f189125d3ca939a866ba86dd3d77257f4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
post_install() {
if [ ! -e etc/nncp/nncp.hjson ]; then
# Normally sysusers only runs after whole transaction, but we
# need it earlier... (Alternative: using tmpfiles.d to fix up
# nncp.hsjon ownership post-transaction)
systemd-sysusers nncp.conf
# Generate a default configuration (with a random private key)
install -D -m 0640 -o nncp -g nncp /dev/null etc/nncp/nncp.hjson
usr/bin/nncp-cfgnew > etc/nncp/nncp.hjson
fi
}
post_upgrade() {
post_install
}
|