Utils
This commit is contained in:
@@ -13,19 +13,19 @@ function option_value() {
|
|||||||
function install() {
|
function install() {
|
||||||
if [ -f ~/.bash_profile ];
|
if [ -f ~/.bash_profile ];
|
||||||
then
|
then
|
||||||
echo "${C_LGn}Bash_profile exist${RES}"
|
echo -e "${C_LGn}Bash_profile exist${RES}"
|
||||||
else
|
else
|
||||||
echo "${C_LGn}Make link bash_profile${RES}"
|
echo -e "${C_LGn}Make link bash_profile${RES}"
|
||||||
ln -s ~/.profile ~/.bash_profile
|
ln -s ~/.profile ~/.bash_profile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd
|
cd
|
||||||
if ! docker --version; then
|
if ! docker --version; then
|
||||||
|
|
||||||
echo -e "${C_LGn}Upgrade your system ...${RES}"
|
echo -e "${C_LGn}Update & Upgrade your system ...${RES}"
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt upgrade -y
|
sudo apt upgrade -y
|
||||||
echo -e "${C_LGn}Install components ...${RES}"
|
echo -e "${C_LGn}installation of necessary components ...${RES}"
|
||||||
sudo apt install curl apt-transport-https ca-certificates gnupg lsb-release -y
|
sudo apt install curl apt-transport-https ca-certificates gnupg lsb-release -y
|
||||||
|
|
||||||
echo -e "${C_LGn}Docker installation...${RES}"
|
echo -e "${C_LGn}Docker installation...${RES}"
|
||||||
|
|||||||
Reference in New Issue
Block a user