added this code snippet to gen_wg_config.sh after line 122
echo "TODAYS DATE" # Display Run Date
echo ""${now}"" # and Time
echo "" #
echo "KEYS EXPIRE ON:" # Display Authentication Token
echo "${expire_date}" # Expiry Date and Time
logger -t SSWG "RUN DATE:${now} KEYS EXPIRE ON: ${expire_date}" # Log Status Information
You can remove the log file. It is set up in the crontabs/root entries.
You won't find any logs until the cron jobs run. You can copy the cron entries:
/mnt/shared/wgapi/gen-wg-config.sh -f -g >/mnt/shared/wgapi/wg-f.log 2>&1
/mnt/shared/wgapi/gen-wg-config.sh -g >>/mnt/shared/wgapi/wg-g.log 2>&1
run each seperately 5 minutes apart and you should see the 2 logs populate.