updated script to check for different docker file

This commit is contained in:
2024-10-11 18:37:49 -05:00
parent 8efb28d71b
commit 849a624ec6

View File

@@ -177,7 +177,7 @@ echo "alias hh='hstr'" >> /etc/bash.bashrc
echo "export HSTR_CONFIG=hide-help,hicolor,prompt-bottom,ignorespace,raw-history-view" >> /etc/bash.bashrc
# docker aliases
if [[ -f /etc/apt/keyrings/docker.gpg ]]
if [[ -f /etc/docker/daemon.json ]]
then
echo "alias dc='docker compose'" >> /etc/bash.bashrc
echo "alias dcup='docker compose up -d'" >> /etc/bash.bashrc
@@ -195,7 +195,7 @@ if [[ -f /etc/apt/keyrings/docker.gpg ]]
fi
# update lazydocker
if [[ -f /etc/apt/keyrings/docker.gpg ]]
if [[ -f /etc/docker/daemon.json ]]
then
curl -s https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash
mv /root/.local/bin/lazydocker /usr/local/bin