From 849a624ec67d99670049d5224dfe2e43c8c6a090 Mon Sep 17 00:00:00 2001 From: akanealw Date: Fri, 11 Oct 2024 18:37:49 -0500 Subject: [PATCH] updated script to check for different docker file --- debian/debian-essentials.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/debian-essentials.sh b/debian/debian-essentials.sh index fbb4645..1732279 100755 --- a/debian/debian-essentials.sh +++ b/debian/debian-essentials.sh @@ -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