summaryrefslogtreecommitdiffstats
path: root/reset-perms.sh
diff options
context:
space:
mode:
authorD. Johnson <fenris02@fedoraproject.org>2012-12-17 09:06:25 -0600
committerD. Johnson <fenris02@fedoraproject.org>2012-12-17 09:06:25 -0600
commitccc0425a8ec60ca5cb5076a25d429b921bd4de93 (patch)
tree515fc22adbc6e9c7311ebdf7366016902b32f5db /reset-perms.sh
parent0e4dff5d4a27b0da5d04f16db6c3295a38079467 (diff)
downloadcleanup-ccc0425a8ec60ca5cb5076a25d429b921bd4de93.tar.gz
cleanup-ccc0425a8ec60ca5cb5076a25d429b921bd4de93.tar.xz
cleanup-ccc0425a8ec60ca5cb5076a25d429b921bd4de93.zip
set verbose for reset-perms
Diffstat (limited to 'reset-perms.sh')
-rwxr-xr-xreset-perms.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/reset-perms.sh b/reset-perms.sh
index e97c00e..c6bf421 100755
--- a/reset-perms.sh
+++ b/reset-perms.sh
@@ -2,6 +2,7 @@
# Partial script version of http://fedorasolved.org/Members/fenris02/post_upgrade_cleanup
+VERBOSE=1
DS=$(/bin/date +%Y%m%d)
LANG=C
TMPDIR=$(/bin/mktemp -d ${TMPDIR:-/tmp}/${0##*/}-XXXXX.log)
@@ -20,7 +21,7 @@ time rpm -a --setugids > /dev/null 2>&1
[ -n "$VERBOSE" ] && echo 'This may take a few minutes, resetting permissions'
time rpm -a --setperms > /dev/null 2>&1
-echo 'This may take a few minutes, resetting file capabilities'
+[ -n "$VERBOSE" ] && echo 'This may take a few minutes, resetting file capabilities'
time rpm -Va > ${TMPDIR}/rpm-Va0.txt 2>&1;
awk '/^.{8}P /{print$NF}' ${TMPDIR}/rpm-Va0.txt \
|xargs rpm --filecaps -qf \