mirror of
https://github.com/ilyakooo0/xmrig-bash-scripts.git
synced 2024-11-22 12:31:57 +03:00
19 lines
477 B
Bash
Executable File
19 lines
477 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "####################################"
|
|
echo "# STARTING SYSTEM MAINTENANCE #"
|
|
echo "####################################"
|
|
|
|
if [ $_APT_MAINETANCE = 1 ]; then
|
|
|
|
sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo apt autoclean
|
|
|
|
else
|
|
echo "Apt maintenance is set to NO ($_APT_MAINETANCE) Skipping"
|
|
fi
|
|
|
|
echo "####################################"
|
|
echo "# SYSTEM MAINTENANCE COMPLETE #"
|
|
echo "####################################"
|
|
|