You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
459 B
25 lines
459 B
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case "$1" in
|
|
configure|reconfigure)
|
|
if [ ! -f /etc/shadowsocks-libev/config.json ]; then
|
|
passwd=$(apg -n 1 -M ncl)
|
|
mkdir -p /etc/shadowsocks-libev
|
|
sed "s/barfoo!/$passwd/" /usr/share/shadowsocks-libev/config.json \
|
|
> /etc/shadowsocks-libev/config.json
|
|
fi
|
|
;;
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
exit 0
|
|
;;
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|