www_archline_hu/cadline/backend/maintenance2/render_ellenorzo.sh
LÁZÁR Imre AI Agent 3d4158c3ac feat(cadline): add common_cadline_libraries + maintenance backend
common_cadline_libraries (CRM hardlock/db/users classes; upstream cadline_web/cadcommonlib), maintenance/ (ARCHLine.XP license backend; upstream cadline_web/maintenance), maintenance2/. Vetted live files (byte-truth); upstream repos in PROVENANCE.md. NOTE: could be git submodules — kept as live files for byte-fidelity.

Signed-off-by: LÁZÁR Imre <imre@illusion.hu>
Assisted-by: claude-code@claude-opus-4-8
2026-07-16 11:34:30 +02:00

22 lines
896 B
Bash

#!/bin/bash
ido=`cat /var/www/hosting/archline.hu/www/public/render/utolso.txt`
utolso=`date --date "$ido" '+%s'`
most=`date '+%s'`
mostido=`date '+%Y-%m-%d %H:%M:%S'`
let mostmin3=$most-180
if [ $mostmin3 -gt $utolso ]; then
#`echo "Nem megy a render szerver, utolso idopont: $ido" | mail -s "Render szerver hiba" -c bodnart@invitel.hu bodnart@cadline.hu`
oke="Hiba"
else
#`echo "Megy a render szerver, utolso idopont: $ido" | mail -s "Render ell. idozito teszt" -c eszter@cadline.hu sztikee@gmail.com`
oke="OK"
fi
`echo -e "$oke: $mostido -- utolso: $ido" >> /var/www/hosting/archline.hu/www/maintenance/render/log.txt`
# 2 oranal regebbi kepek torlese a tempbol
`find /var/www/hosting/archline.hu/www/public/render/temp/ -maxdepth 1 -type f -amin +120 -amin -240 -name "*.bmp" -exec echo {} \; -exec rm {} \; >> /var/www/hosting/archline.hu/www/public/render/temp/000fajlok.txt`