From f077a7cdc71e4f89cbecfa49bb72fa1691b17b6a Mon Sep 17 00:00:00 2001 From: "Thomas W. Fredian" Date: Fri, 9 Jun 2006 15:50:13 +0000 Subject: [PATCH] Add SetMdsplusFileProtection template --- scripts/Makefile.in | 6 +++++- scripts/SetMdsplusFileProtection | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 scripts/SetMdsplusFileProtection diff --git a/scripts/Makefile.in b/scripts/Makefile.in index 29d5679489..182c0f2a40 100644 --- a/scripts/Makefile.in +++ b/scripts/Makefile.in @@ -8,7 +8,8 @@ INSTALL=@top_srcdir@/conf/install-sh -c SCRIPTS = \ @MAKEBINDIR@remote_submit \ @MAKEBINDIR@unix_submit \ - @MAKEBINDIR@synchronize_unix + @MAKEBINDIR@synchronize_unix \ + @MAKEBINDIR@SetMdsplusFileProtection all : @MAKEBINDIR@ \ $(SCRIPTS) @@ -30,5 +31,8 @@ install: @MAKEBINDIR@synchronize_unix : synchronize_unix cp synchronize_unix @MAKEBINDIR@synchronize_unix +@MAKEBINDIR@SetMdsplusFileProtection : SetMdsplusFileProtection + cp SetMdsplusFileProtection @MAKEBINDIR@SetMdsplusFileProtection + @MAKEBINDIR@ : mkdir @MAKEBINDIR@ diff --git a/scripts/SetMdsplusFileProtection b/scripts/SetMdsplusFileProtection new file mode 100755 index 0000000000..fc8c391796 --- /dev/null +++ b/scripts/SetMdsplusFileProtection @@ -0,0 +1,6 @@ +#!/bin/sh +# +# Change group of file to that of the container directory +# Change mode to allow user and group read,write and other read +chgrp $1 --reference=`dirname $1` +chmod 0664 $1