mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-25 14:31:56 +00:00
Update clean.sh
tweak
This commit is contained in:
parent
a4c1b0e464
commit
0213205b29
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
function header_info() {
|
function header_info() {
|
||||||
cat <<"EOF"
|
clear
|
||||||
|
cat <<"EOF"
|
||||||
________ __ _ ________
|
________ __ _ ________
|
||||||
/ ____/ /__ ____ _____ / / | |/ / ____/
|
/ ____/ /__ ____ _____ / / | |/ / ____/
|
||||||
/ / / / _ \/ __ `/ __ \ / / | / /
|
/ / / / _ \/ __ `/ __ \ / / | / /
|
||||||
@ -13,7 +14,6 @@ BL=$(echo "\033[36m")
|
|||||||
GN=$(echo "\033[1;92m")
|
GN=$(echo "\033[1;92m")
|
||||||
CL=$(echo "\033[m")
|
CL=$(echo "\033[m")
|
||||||
name=$(hostname)
|
name=$(hostname)
|
||||||
clear
|
|
||||||
header_info
|
header_info
|
||||||
echo -e "${BL}[Info]${GN} Cleaning $name${CL} \n"
|
echo -e "${BL}[Info]${GN} Cleaning $name${CL} \n"
|
||||||
cache=$(find /var/cache/ -type f)
|
cache=$(find /var/cache/ -type f)
|
||||||
@ -32,7 +32,6 @@ else
|
|||||||
sleep 2
|
sleep 2
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
clear
|
|
||||||
header_info
|
header_info
|
||||||
echo -e "${BL}[Info]${GN} Cleaning $name${CL} \n"
|
echo -e "${BL}[Info]${GN} Cleaning $name${CL} \n"
|
||||||
logs=$(find /var/log/ -type f)
|
logs=$(find /var/log/ -type f)
|
||||||
@ -51,7 +50,6 @@ else
|
|||||||
sleep 2
|
sleep 2
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
clear
|
|
||||||
header_info
|
header_info
|
||||||
echo -e "${BL}[Info]${GN} Cleaning $name${CL} \n"
|
echo -e "${BL}[Info]${GN} Cleaning $name${CL} \n"
|
||||||
echo -e "${GN}Populating apt lists${CL} \n"
|
echo -e "${GN}Populating apt lists${CL} \n"
|
||||||
|
Loading…
Reference in New Issue
Block a user