Skip to content

Commit

Permalink
Merge pull request Drewsif#156 from archerindigo/master
Browse files Browse the repository at this point in the history
Fix log removal
  • Loading branch information
Drewsif authored Aug 27, 2020
2 parents dfdf279 + a7977b9 commit ee4e7ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pishrink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ if [[ $prep == true ]]; then
info "Syspreping: Removing logs, apt archives, dhcp leases and ssh hostkeys"
mountdir=$(mktemp -d)
mount "$loopback" "$mountdir"
rm -rf "$mountdir/var/cache/apt/archives/*" "$mountdir/var/lib/dhcpcd5/*" "$mountdir/var/log/*" "$mountdir/var/tmp/*" "$mountdir/tmp/*" "$mountdir/etc/ssh/*_host_*"
rm -rvf $mountdir/var/cache/apt/archives/* $mountdir/var/lib/dhcpcd5/* $mountdir/var/log/* $mountdir/var/tmp/* $mountdir/tmp/* $mountdir/etc/ssh/*_host_*
umount "$mountdir"
fi

Expand Down

0 comments on commit ee4e7ac

Please sign in to comment.