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 rm /etc/apt/trusted.gpg.d/microsoft.gpg
fi fi
rm -rf /opt/download
mkdir -p /opt/download
# Clean apt-cache # Clean apt-cache
apt-get clean apt-get clean

View File

@ -879,6 +879,12 @@ if [ $IS_ROCKPRO64 = 1 ]; then
systemctl enable fan_control systemctl enable fan_control
fi fi
# Random Cleanup
rm -rf /opt/download
mkdir -p /opt/download
# Clean apt-cache
apt-get clean
# Setup myNode Startup Script # Setup myNode Startup Script
systemctl daemon-reload systemctl daemon-reload