File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 5454echo " Running OSG configure.."
5555# Run the OSG Configure script to set up bosco
5656mkdir -p /var/cache/osg/
57- cat /etc/osg/config.d/* | sha256sum > /var/cache/osg/config-sha256.txt
57+ sha256sum /etc/osg/config.d/* > /var/cache/osg/config-sha256.txt
5858osg-configure -c --verbose VERBOSE
5959
6060# Cert stuff
Original file line number Diff line number Diff line change 1111
1212cached_checksum_dir=/var/cache/osg/
1313cached_checksum_path=$cached_checksum_dir /config-sha256.txt
14- config_checksum=$( cat /etc/osg/config.d/* | sha256sum)
14+
15+ config_dir=/etc/osg/config.d/
16+ config_checksum=$( sha256sum " $config_dir /*" )
1517cached_config_checksum=$( cat " $cached_checksum_path " 2> /dev/null)
1618
1719if [[ -z $cached_config_checksum ]]; then
@@ -20,9 +22,10 @@ if [[ -z $cached_config_checksum ]]; then
2022 echo " $config_checksum " > " $cached_checksum_path "
2123fi
2224
23- if [[ $config_checksum == $cached_config_checksum ]]; then
24- echoerr " No changes detected in /etc/osg/config.d , exiting."
25+ if [[ $config_checksum == " $cached_config_checksum " ]]; then
26+ echoerr " No changes detected in $config_dir , exiting."
2527 exit 0
2628fi
2729
30+ cp " /tmp/$config_dir /*.ini" /etc/osg/config.d
2831osg-configure -c
You can’t perform that action at this time.
0 commit comments