Files
shadowsocks-libev/debian/shadowsocks-libev.postinst
T
Roger Shimizu 75aeacadd1 Sync debian/ folder (#681)
A few itmes deserve to be mentioned:
 - use apg to generate random password when install.
 - generated password won't get updated when upgrading / reinstall.
 - add more to description to make lintian happy.
 - generated Makefile.am don't need to be listed in debian/copyright.
 - the way of installing systemd service is changed. Thanks to advice
   from Boyuan.
 - multi-arch can be archived without specific setting in debian/rules
 - add debian/watch file
2016-06-19 19:58:52 -05:00

24 lines
325 B
Bash
Executable File

#!/bin/sh
set -e
case "$1" in
configure|reconfigure)
# continue
;;
abort-upgrade|abort-remove|abort-deconfigure)
exit 0
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 0
;;
esac
passwd=$(apg -n 1 -M ncl)
sed -i "s/barfoo!/$passwd/" etc/shadowsocks-libev/config.json
#DEBHELPER#
exit 0