最初コミット

This commit is contained in:
2026-05-17 01:57:17 +09:00
commit 62326874ce
35 changed files with 663 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/sh
DATE=$(date +"%Y年%m月%d日")
echo "192.168.10.103 サーバーパッケージが更新されました。 (${DATE})
---------------
" > /root/pkg.txt
/usr/sbin/pkg_add -ui >> /root/pkg.txt
/usr/sbin/syspatch >> /root/pkg.txt
cat /root/pkg.txt | mail -s "192.168.10.103 パッケージ更新 (${DATE})" reports@076.ne.jp
rm -rf /root/pkg.txt