#!/bin/bash # Licence : GPL v3 # Author: Laurent HUBERT # # Renews the ssh server keys if they exist # cat < /dev/null 2>&1 && renew_ssh_keys || status=1 if [ 0 -ne "$status" ] then # Exit with non zero status echo "Error renewing SSH keys" exit 1 else cat <<-EOF # Renewing SSH server keys: OK # ################################## EOF fi