最初コミット

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

21
192.168.10.103/crontab Normal file
View File

@@ -0,0 +1,21 @@
#
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute hour mday month wday [flags] command
#
# rotate log files every hour, if necessary
0 * * * * /usr/bin/newsyslog
# send log file notifications, if necessary
#1-59 * * * * /usr/bin/newsyslog -m
#
# do daily/weekly/monthly maintenance
30 1 * * * /bin/sh /etc/daily
30 3 * * 6 /bin/sh /etc/weekly
30 5 1 * * /bin/sh /etc/monthly
#~ * * * * /usr/libexec/spamd-setup
#~ * * * * -ns rpki-client -v && bgpctl reload
0 8 * * 2 /root/update_pkgs.sh
0 8 * * 5 /root/update_pkgs.sh

View File

@@ -0,0 +1,19 @@
#!/bin/sh
export SER="126"
export VER="1.26.3"
export ARC="amd64"
export OS="openbsd"
wget https://go.dev/dl/go$VER.$OS-$ARC.tar.gz
tar zxfv go$VER.$OS-$ARC.tar.gz
rm -rf /usr/local/go$SER
mv go /usr/local/go$SER
ln -s /usr/local/go$SER/bin/go /usr/local/bin/go$SER
ln -s /usr/local/go$SER/bin/gofmt /usr/local/bin/gofmt$SER
rm -rf /usr/local/bin/go
rm -rf /usr/local/bin/gofmt
ln -s /usr/local/bin/go$SER /usr/local/bin/go
ln -s /usr/local/bin/gofmt$SER /usr/local/bin/gofmt
go version
rm -rf go$VER.$OS-$ARC.tar.gz

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

View File

@@ -0,0 +1,15 @@
#!/bin/sh
export VER="0.16.0"
export ARC="x86_64"
export OS="openbsd"
wget https://ziglang.org/download/$VER/zig-$ARC-$OS-$VER.tar.xz
xzcat zig-$ARC-$OS-$VER.tar.xz | tar xf -
cd zig-$ARC-$OS-$VER
rm -rf /usr/local/lib/zig
mv lib /usr/local/lib/zig
mv zig /usr/local/bin
cd ..
rm -rf zig-$ARC-$OS-$VER zig-$ARC-$OS-$VER*
zig version