mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-26 02:33:41 +00:00
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
24 lines
325 B
Bash
Executable File
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
|