Skip to content

Commit

Permalink
v7.0
Browse files Browse the repository at this point in the history
+ DietPi-PREP | Satisfy shellcheck: We remove system directories intentionally here to be freshly restored with the package reinstall and reconfiguration below
  • Loading branch information
MichaIng committed Feb 19, 2021
1 parent e3eb44e commit 6880316
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PREP_SYSTEM_FOR_DIETPI.sh
Expand Up @@ -1354,6 +1354,7 @@ _EOF_'
echo -e "NFS client: $info_use_drive_manager" > /mnt/nfs_client/readme.txt

G_DIETPI-NOTIFY 2 'Restoring default base files:'
# shellcheck disable=SC2114
rm -Rfv /etc/{motd,profile,update-motd.d,issue{,.net}} /root /home /media /var/mail
G_AGI -o 'Dpkg::Options::=--force-confmiss,confnew' --reinstall base-files # Restore /etc/{update-motd.d,issue{,.net}} /root /home
G_EXEC /var/lib/dpkg/info/base-files.postinst configure # Restore /root/.{profile,bashrc} /etc/{motd,profile} /media /var/mail
Expand Down

0 comments on commit 6880316

Please sign in to comment.