Files
shadowsocks-libev/debian/shadowsocks-libev.postinst
T
Joey Korkames 69fc73a14d fix path typo in debian/postinstall (#691)
Missing slash causes dpkg -i to fail:
---
Setting up shadowsocks-libev (2.4.7-1) ...
sed: can't read etc/shadowsocks-libev/config.json: No such file or directory
dpkg: error processing shadowsocks-libev (--install):
 subprocess installed post-installation script returned error exit status 2
2016-06-28 18:36:04 -05:00

24 lines
326 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