OSDN Git Service

サーバー処理改修。
authormatsuand <30614168+matsuand@users.noreply.github.com>
Wed, 11 May 2022 12:14:07 +0000 (21:14 +0900)
committermatsuand <30614168+matsuand@users.noreply.github.com>
Wed, 11 May 2022 12:14:07 +0000 (21:14 +0900)
* サーバー上の各ファイルに対するグループ書き込み権限を維持するため
  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

Makefile
admin/cron/webupdate-all.sh
admin/cron/webupdate.sh
www/Makefile

index 593660c..729130d 100644 (file)
--- 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 $@
 
 #
index e26b4e5..f470425 100755 (executable)
@@ -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
 
index bdc069e..a452648 100755 (executable)
@@ -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
 
index a4f4bf5..9ce9bbd 100644 (file)
@@ -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' \