From: matsuand <30614168+matsuand@users.noreply.github.com> Date: Wed, 11 May 2022 12:14:07 +0000 (+0900) Subject: サーバー処理改修。 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3eebab046cb746bc2369e0a5f273fb007f6778fa;p=linuxjm%2Fjm.git サーバー処理改修。 * サーバー上の各ファイルに対するグループ書き込み権限を維持するため umask 002 明示実行 (実行箇所移動)。 * Makefile, www/Makefile: rsync 処理におけるエラー、failed to set times on "dir": Operation not permitted (1) エラー解消のため、それまで rsync の --omit-dir-times オプションを追加していたが、これを元に戻す。 本来的な解決として crontab の実行コマンドの頭に "newgrp linuxjm &&" をつけて対処する。 ; m h dom mon dow command 33 */6 * * * newgrp linuxjm && /home/groups/l/li/linuxjm/jm.git/admin/cron/webupdate.sh 3 1 15 * * newgrp linuxjm && /home/groups/l/li/linuxjm/jm.git/admin/cron/webupdate-all.sh --- diff --git a/Makefile b/Makefile index 593660c2..729130db 100644 --- a/Makefile +++ b/Makefile @@ -48,9 +48,9 @@ roff: stamp/www-roff-modified stamp/www-roff-modified: stamp/cvs-status-modified @mkdir -p $(WWWROFF) - $(RSYNC) -a --delete --omit-dir-times -v $(ROFFSRC)/ $(WWWROFF) + $(RSYNC) -a --delete -v $(ROFFSRC)/ $(WWWROFF) @mkdir -p $(WWWPOD) - $(RSYNC) -a --delete --omit-dir-times -v $(PODSRC)/ $(WWWPOD) + $(RSYNC) -a --delete -v $(PODSRC)/ $(WWWPOD) touch $@ # diff --git a/admin/cron/webupdate-all.sh b/admin/cron/webupdate-all.sh index e26b4e52..f470425d 100755 --- a/admin/cron/webupdate-all.sh +++ b/admin/cron/webupdate-all.sh @@ -7,13 +7,13 @@ JMHOME=/home/groups/l/li/linuxjm GITDIR=$JMHOME/jm.git LOGDIR=$JMHOME/log +umask 002 test -d $LOGDIR || mkdir -p $LOGDIR LOGFILE=$LOGDIR/log-$(/bin/date +%Y%m%d-%H%M%S).txt touch $LOGFILE cd $JMHOME/jm.git echo "===== git pull =====" >> $LOGFILE 2>&1 -umask 002 git pull >> $LOGFILE 2>&1 git submodule update --init --recursive >> $LOGFILE 2>&1 diff --git a/admin/cron/webupdate.sh b/admin/cron/webupdate.sh index bdc069e4..a4526483 100755 --- a/admin/cron/webupdate.sh +++ b/admin/cron/webupdate.sh @@ -7,13 +7,13 @@ JMHOME=/home/groups/l/li/linuxjm GITDIR=$JMHOME/jm.git LOGDIR=$JMHOME/log +umask 002 test -d $LOGDIR || mkdir -p $LOGDIR LOGFILE=$LOGDIR/log-$(/bin/date +%Y%m%d-%H%M%S).txt touch $LOGFILE echo "===== git pull =====" >> $LOGFILE 2>&1 cd $JMHOME/jm.git -umask 002 git pull >> $LOGFILE 2>&1 git submodule update --init --recursive >> $LOGFILE 2>&1 diff --git a/www/Makefile b/www/Makefile index a4f4bf59..9ce9bbdf 100644 --- a/www/Makefile +++ b/www/Makefile @@ -57,7 +57,7 @@ clean: make -C announcement/ clean install: all - $(RSYNC) -a --delete --omit-dir-times -v \ + $(RSYNC) -a --delete -v \ --exclude='bin' \ --exclude='*.m4' \ --exclude='*.perl' \