#!/bin/sh if grep @PASSWORD@ /etc/romp/romp.toml > /dev/null then newpasswd=$(< /dev/urandom tr -dc A-Za-z | head -c${1:-32};echo) echo "randomizing admin password" sed -i -e s/@PASSWORD@/$newpasswd/ /etc/romp/romp.toml fi