summaryrefslogtreecommitdiff
path: root/scripts
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
parentf3a563927fd763646b104e9af0a8a78f48920a95 (diff)
downloadvyatta-cfg-ae08adfabeed8fec9093e759a40f156d589defa9.tar.gz
vyatta-cfg-ae08adfabeed8fec9093e759a40f156d589defa9.zip
make sure config directories have correct permissions.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-config-loader.pl2
-rwxr-xr-xscripts/xorp_tmpl_tool6
2 files changed, 6 insertions, 2 deletions
diff --git a/scripts/vyatta-config-loader.pl b/scripts/vyatta-config-loader.pl
index a3dfc44..4c05b80 100755
--- a/scripts/vyatta-config-loader.pl
+++ b/scripts/vyatta-config-loader.pl
@@ -6,6 +6,8 @@ use strict;
use lib "/opt/vyatta/share/perl5/";
use VyattaConfigLoad;
+umask 0002;
+
# get a list of all config statement in the startup config file
# (sorted by rank).
my @all_nodes = VyattaConfigLoad::getStartupConfigStatements($ARGV[0]);
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