This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| NAME=$1 | |
| UPDATE=$2 | |
| OUTLOG=/var/tmp/$NAME.log | |
| echo "Sending output to $OUTLOG" | |
| echo "RUNNING CHECKS FOR $NAME AGAINST DATE $UPDATE" | tee -a $OUTLOG | |
| echo "##### 01 - Check for modified files in /var/nsinstall with extension .php #####" | tee -a $OUTLOG | |
| T01=$(find /var/nsinstall/ -type f -iname '*.php' -exec ls -al {} \; 2>>$OUTLOG) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "fmt" | |
| "reflect" | |
| "strings" | |
| ) |