Skip to content

Commit

Permalink
v6.31
Browse files Browse the repository at this point in the history
+ DietPi-PREP | Do not remove /home (recreated anyway) and /media but their content only, since their existence is required to fulfil FHS and their absence can hence lead to issues: #3558, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956495#15
  • Loading branch information
MichaIng authored May 25, 2020
1 parent 4ee75d8 commit 16d105e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PREP_SYSTEM_FOR_DIETPI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1027,10 +1027,10 @@ _EOF_'

G_DIETPI-NOTIFY 2 'Removing misc files/folders/services, not required by DietPi'

[[ -d '/home' ]] && rm -vR /home
[[ -d '/media' ]] && rm -vR /media
[[ -d '/selinux' ]] && rm -vR /selinux
[[ -d '/var/cache/apparmor' ]] && rm -vR /var/cache/apparmor
[[ -d '/home' ]] && rm -Rfv /home/{,.??,.[^.]}* || mkdir /home
[[ -d '/media' ]] && rm -Rfv /media/{,.??,.[^.]}* || mkdir /media
[[ -d '/selinux' ]] && rm -Rv /selinux
[[ -d '/var/cache/apparmor' ]] && rm -Rv /var/cache/apparmor
rm -Rfv /var/lib/dhcp/{,.??,.[^.]}*
rm -Rfv /var/backups/{,.??,.[^.]}*

Expand Down

0 comments on commit 16d105e

Please sign in to comment.