From faf5494c49584984ef730df52ff997dac3143709 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Tue, 23 Nov 2021 20:52:30 -0600 Subject: [PATCH] Cleanup download folder after upgrade --- rootfs/standard/usr/bin/mynode_post_upgrade.sh | 2 ++ setup/setup_device.sh | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/rootfs/standard/usr/bin/mynode_post_upgrade.sh b/rootfs/standard/usr/bin/mynode_post_upgrade.sh index ea86977a..e73b9b93 100755 --- a/rootfs/standard/usr/bin/mynode_post_upgrade.sh +++ b/rootfs/standard/usr/bin/mynode_post_upgrade.sh @@ -1002,6 +1002,8 @@ if [ -f /etc/apt/trusted.gpg.d/microsoft.gpg ]; then rm /etc/apt/trusted.gpg.d/microsoft.gpg fi +rm -rf /opt/download +mkdir -p /opt/download # Clean apt-cache apt-get clean diff --git a/setup/setup_device.sh b/setup/setup_device.sh index 3f0196aa..364f9cab 100755 --- a/setup/setup_device.sh +++ b/setup/setup_device.sh @@ -879,6 +879,12 @@ if [ $IS_ROCKPRO64 = 1 ]; then systemctl enable fan_control fi +# Random Cleanup +rm -rf /opt/download +mkdir -p /opt/download + +# Clean apt-cache +apt-get clean # Setup myNode Startup Script systemctl daemon-reload