#!/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 echo "> Renewing SSH server keys : OK <" exit 0 fi