excluding for dist debian

excluding $dist debian from sudo systemctl enable --now docker, since it is launched at the post-install stage
This commit is contained in:
lunardunno
2023-11-19 21:12:55 +04:00
committed by GitHub
parent 77a411f1d7
commit 50d91526fb
+1 -1
View File
@@ -8,7 +8,7 @@ if ! command -v sudo > /dev/null 2>&1; then $pm $check_pkgs; $pm $silent_inst su
if ! command -v fuser > /dev/null 2>&1; then sudo $pm $check_pkgs; sudo $pm $silent_inst psmisc; fi;\
if ! command -v lsof > /dev/null 2>&1; then sudo $pm $check_pkgs; sudo $pm $silent_inst lsof; fi;\
if ! command -v docker > /dev/null 2>&1; then sudo $pm $check_pkgs; sudo $pm $silent_inst $docker_pkg;\
sleep 5 && sudo systemctl enable --now docker && sleep 5;\
if [ "$dist" != "debian" ]; then sudo systemctl enable --now docker; fi;\
fi;\
if [ "$(systemctl is-active docker)" != "active" ]; then sudo $pm $check_pkgs; sudo $pm $silent_inst $docker_pkg;\
sleep 5 && sudo systemctl restart docker && sleep 5;\