Permalink
Browse files

Add report option to nems-support

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jan 4, 2019
1 parent 2b116b2 commit 57ee7505ecf8041b7c79bba17c90ae8dc37ef067
Showing with 10 additions and 0 deletions.
  1. +5 −0 support-sd.sh
  2. +5 −0 support.sh
@@ -4,3 +4,8 @@
if [[ -f /var/www/html/backup/snapshot/support.nems ]]; then
find /var/www/html/backup/snapshot/support.nems -mmin +15 -type f -exec rm -fv /var/www/html/backup/snapshot/support.nems \;
fi

if [[ -f /var/www/html/backup/snapshot/support-report.txt ]]; then
find /var/www/html/backup/snapshot/support-report.txt -mmin +15 -type f -exec rm -fv /var/www/html/backup/snapshot/support-report.txt \;
fi

@@ -81,6 +81,11 @@ else
echo Created backup folder at /var/www/html/backup/snapshot
fi

if [[ $1 == 'report' ]]; then
/usr/local/share/nems/nems-scripts/support-report.sh
exit
fi

addpublic=''
addprivate=''

0 comments on commit 57ee750

Please sign in to comment.