create postinst script
This commit is contained in:
parent
454d27780c
commit
cf11a13945
|
@ -36,6 +36,8 @@ echo "Description: ${dsc}" >> $control
|
||||||
echo "Maintainer: ${mtr}" >> $control
|
echo "Maintainer: ${mtr}" >> $control
|
||||||
echo "Architecture: ${arch}" >> $control
|
echo "Architecture: ${arch}" >> $control
|
||||||
|
|
||||||
|
install -m 755 talircd/deploy/postinst.sh $root/DEBIAN/postinst
|
||||||
|
|
||||||
# generate .deb
|
# generate .deb
|
||||||
|
|
||||||
dpkg-deb --root-owner-group -b $root "dist/${pkg}_${ver}-${rev}_${arch}.deb"
|
dpkg-deb --root-owner-group -b $root "dist/${pkg}_${ver}-${rev}_${arch}.deb"
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/sh
|
||||||
|
[ -f /etc/talircd.conf ] || install -m 644 /usr/share/talircd/default/conf /etc/talircd.conf
|
||||||
|
[ -f /etc/talircd.motd ] || install -m 644 /usr/share/talircd/default/motd /etc/talircd.motd
|
||||||
|
systemctl daemon-reload
|
Loading…
Reference in New Issue