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.

23 lines
326 B

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