case "${ACTION}" in post) # Do not be confused. This has no effect on whether or not the package is edited # That honour rests on the string and it's companions. if [ "${UPDATE}" != "yes" ]; then sessionSecret=$(tr -dc [:xdigit:] < /dev/urandom | tr [:upper:] [:lower:] | head -c128) encryptionSecret=$(tr -dc [:xdigit:] < /dev/urandom | tr [:upper:] [:lower:] | head -c64) # The following is a public value but randomness should be fine serverToken=$(tr -dc [:xdigit:] < /dev/urandom | tr [:upper:] [:lower:] | head -c64) sed -i etc/spreed/webrtc.conf \ -e "s!!$sessionSecret!" \ -e "s!!$encryptionSecret!" \ -e "s!!$serverToken!" fi ;; esac