mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-27 19:23:40 +00:00
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
24 lines
326 B
Bash
Executable File
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
|