summaryrefslogtreecommitdiffstats
path: root/distro-clean.sh
diff options
context:
space:
mode:
authorD. Johnson <fenris02@fedoraproject.org>2011-09-18 01:45:12 -0500
committerD. Johnson <fenris02@fedoraproject.org>2011-09-18 01:45:12 -0500
commit782fb547fd846f8faa775a3af5dfa95de1862e8b (patch)
tree1f0eb827fb3883e48e49db82ef745beea7d03e5a /distro-clean.sh
parent3a38064539bc554137d4ce862dcc0f43df1a1674 (diff)
downloadcleanup-782fb547fd846f8faa775a3af5dfa95de1862e8b.tar.gz
cleanup-782fb547fd846f8faa775a3af5dfa95de1862e8b.tar.xz
cleanup-782fb547fd846f8faa775a3af5dfa95de1862e8b.zip
fix minor typos
Diffstat (limited to 'distro-clean.sh')
-rwxr-xr-xdistro-clean.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/distro-clean.sh b/distro-clean.sh
index 7b9e9b7..5201747 100755
--- a/distro-clean.sh
+++ b/distro-clean.sh
@@ -153,17 +153,18 @@ echo 'run' >> $YSHELL2
[ -n "$DEBUG" ] && read
semanage -o ${TMPDIR}/SELINUX-CUSTOM-CONFIG_${DS}.txt
mv /etc/selinux/targeted ${TMPDIR}/targeted.${DS}
-yum shell $YSHELL -y --disableplugin=presto --skip-broken
-yum shell $YSHELL2 -y --disableplugin=presto --skip-broken
-yum -y distribution-synchronization --disableplugin=presto --skip-broken
+mkdir -p /etc/selinux/targeted
+time yum shell $YSHELL -y --disableplugin=presto --skip-broken
+time yum shell $YSHELL2 -y --disableplugin=presto --skip-broken
+time yum distribution-synchronization -y --disableplugin=presto --skip-broken
[ -f /etc/PackageKit/CommandNotFound.conf ] \
- && sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false' /etc/PackageKit/CommandNotFound.conf
+ && sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
# Something went around above if this directory does not exist
[ -n "$VERBOSE" ] && echo 'Resetting local selinux policy'
[ -n "$DEBUG" ] && read
-[ -d /etc/selinux/targeted ] || yum reinstall -y selinux-policy-targeted
+[ -d /etc/selinux/targeted/policy ] || yum reinstall -y selinux-policy-targeted
semanage -i ${TMPDIR}/SELINUX-CUSTOM-CONFIG_${DS}.txt
#