فهرست منبع

clean up properly after install

Grega Bremec 2 سال پیش
والد
کامیت
f0ae4a4bfd
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      images/Containerfile-psacct
  2. 1 1
      images/Containerfile-sysstat

+ 1 - 1
images/Containerfile-psacct

@@ -8,7 +8,7 @@ COPY entrypoint-psacct.sh /usr/local/bin/entrypoint.sh
 # Twist: if there is no host entitlement, remove host RHSM data.
 RUN [ -d /etc/pki/entitlement-host ] || rm -f /etc/rhsm-host ; \
     microdnf -y install psacct && \
-    rm -rf /var/lib/dnf /var/cache/dnf /var/cache/cups /var/cache/PackageKit && \
+    rm -rf /var/lib/dnf /var/cache/dnf /var/cache/yum /var/cache/cups /var/cache/PackageKit && \
     chmod 755 /usr/local/bin/entrypoint.sh
 
 VOLUME /var/account

+ 1 - 1
images/Containerfile-sysstat

@@ -8,7 +8,7 @@ COPY entrypoint-sysstat.sh /usr/local/bin/entrypoint.sh
 # Twist: if there is no host entitlement, remove host RHSM data.
 RUN [ -d /etc/pki/entitlement-host ] || rm -f /etc/rhsm-host ; \
     microdnf -y install sysstat && \
-    rm -rf /var/lib/dnf /var/cache/dnf /var/cache/cups /var/cache/PackageKit && \
+    rm -rf /var/lib/dnf /var/cache/dnf /var/cache/yum /var/cache/cups /var/cache/PackageKit && \
     chmod 755 /usr/local/bin/entrypoint.sh
 
 VOLUME /var/log/sa