Cleanup download folder after upgrade

This commit is contained in:
Taylor Helsper 2021-11-23 20:52:30 -06:00
parent dbc601dcc7
commit faf5494c49
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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