summaryrefslogtreecommitdiff
path: root/scripts/xorp_tmpl_tool
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-10-24 09:09:29 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2007-10-24 09:09:29 -0700
commitae08adfabeed8fec9093e759a40f156d589defa9 (patch)
tree346ae29a6645f5b547b567b4a9956a6338462f89 /scripts/xorp_tmpl_tool
parentf3a563927fd763646b104e9af0a8a78f48920a95 (diff)
downloadvyatta-cfg-ae08adfabeed8fec9093e759a40f156d589defa9.tar.gz
vyatta-cfg-ae08adfabeed8fec9093e759a40f156d589defa9.zip
make sure config directories have correct permissions.
Diffstat (limited to 'scripts/xorp_tmpl_tool')
-rwxr-xr-xscripts/xorp_tmpl_tool6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/xorp_tmpl_tool b/scripts/xorp_tmpl_tool
index ab25fa9..db5589a 100755
--- a/scripts/xorp_tmpl_tool
+++ b/scripts/xorp_tmpl_tool
@@ -1,10 +1,11 @@
#!/bin/bash
-UMASK_SAVE=`umask`
+UMASK_SAVE_G=`umask`
umask 0111
XORPLOGFILE=/tmp/xorp_tmpl_tool.log
touch ${XORPLOGFILE}
-umask ${UMASK_SAVE}
+
+umask 0002
#need to pass in value to change... as part of set command...
## cli ENV_EDIT_LEVEL
@@ -146,5 +147,6 @@ fi
#echo "<=========ConfigDirectories AFTER" >> ${XORPLOGFILE}
echo "ret=${RET_STATUS}" >> ${XORPLOGFILE}
+umask ${UMASK_SAVE_G}
exit $RET_STATUS