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

  1. #!/bin/sh
  2. set -e
  3. case "$1" in
  4. configure|reconfigure)
  5. if [ ! -f /etc/shadowsocks-libev/config.json ]; then
  6. passwd=$(apg -n 1 -M ncl)
  7. mkdir -p /etc/shadowsocks-libev
  8. sed "s/barfoo!/$passwd/" /usr/share/shadowsocks-libev/config.json \
  9. > /etc/shadowsocks-libev/config.json
  10. fi
  11. ;;
  12. abort-upgrade|abort-remove|abort-deconfigure)
  13. exit 0
  14. ;;
  15. *)
  16. echo "postinst called with unknown argument \`$1'" >&2
  17. exit 0
  18. ;;
  19. esac
  20. #DEBHELPER#
  21. exit 0