#!/bin/bash if [[ ! -f /etc/dynnsd.toml ]] then random_passwd=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1) cat /etc/dynnsd.dist.toml | sed -e "s/change_me/$random_passwd/" > /etc/dynnsd.toml fi