소스 검색

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