updated script to check for different docker file
This commit is contained in:
4
debian/debian-essentials.sh
vendored
4
debian/debian-essentials.sh
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user