Changeset 348
- Timestamp:
- 06/23/2009 18:15:20 (3 years ago)
- Location:
- branches/confman-1.9
- Files:
-
- 5 edited
-
. (modified) (1 prop)
-
abspath.in (modified) (1 prop)
-
confaudit.in (modified) (3 diffs)
-
conflock.in (modified) (1 prop)
-
confmanlib.sh.in (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/confman-1.9
-
branches/confman-1.9/abspath.in
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/confman-1.9/confaudit.in
r326 r348 35 35 36 36 function print_help { 37 echo "usage: $0 [- q]" >&437 echo "usage: $0 [-d] [-q]" >&4 38 38 exit ${1:-0} 39 39 } … … 42 42 while getopts "qh" opt 2>&4 ; do 43 43 case $opt in 44 d) DEBUG=true ;; 44 45 q) quiet=true ;; 45 46 h) print_help 0 ;; … … 48 49 done 49 50 51 trap "conf_cleanExit" EXIT 52 # If we're in debug mode, we should log stderr messages to the logger 53 # as well. Otherwise, we send them to the bit bucket. 54 if $DEBUG ; then 55 exec 1>&2 56 else 57 exec 1>/dev/null 58 fi 59 50 60 conf_lock_system 61 62 # Set up our "Working Copy" 51 63 tarball=$(conf_fetch) 52 if ! [ -s $tarball ] 53 then 64 if ! [ -s $tarball ] ; then 54 65 echo "Could not fetch the tarball." >&2 55 66 exit 1 56 67 fi 57 68 58 exportWORK_PATH=$(conf_tmp_dir)59 exportLIVE_ROOT=$(conf_tmp_dir)69 WORK_PATH=$(conf_tmp_dir) 70 LIVE_ROOT=$(conf_tmp_dir) 60 71 61 72 tar -xzf $tarball -C $WORK_PATH 62 73 rm -rf $tarball 63 74 75 echo "Audit operation started" | conf_logger 64 76 for layer in $(conf_get_recipe) ; do 65 77 echo "Rolling on $layer..." 66 conf_rollout $layer || return $?78 conf_rollout $layer || conf_cleanExit 67 79 done 68 80 for file in $SINGULARITIES ; do 69 conf_assemble_sing $file || return $? 81 echo "Assembling singularity $file..." 82 conf_assemble_sing $file || conf_cleanExit 70 83 done 84 rm -rf $WORK_PATH 71 85 72 rm -rf $WORK_PATH 73 if $quiet 74 then 75 $SUDO /usr/bin/diff -rPu / $LIVE_ROOT | grep -v "^Only in" 86 if $quiet; then 87 diff -ruq / $LIVE_ROOT | grep -v "^Only in" >&2 76 88 else 77 $SUDO /usr/bin/diff -rPuq / $LIVE_ROOT | grep -v "^Only in"89 diff -ru / $LIVE_ROOT | grep -v "^Only in" >&2 78 90 fi 91 echo "Audit operation finished successfully" | conf_logger 79 92 80 93 conf_unlock_system 81 $SUDO rm -rf $LIVE_ROOT82 94 95 trap EXIT 96 rm -rf $LIVE_ROOT 97 -
branches/confman-1.9/conflock.in
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/confman-1.9/confmanlib.sh.in
- Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset
for help on using the changeset viewer.
