Kaynağa Gözat

Merge pull request #42070 from thaJeztah/20.10_backport_rootless_typo_guard

[20.10 backport] dockerd-rootless.sh: add typo guard
Tibor Vass 4 yıl önce
ebeveyn
işleme
035cb276d9
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  1. 6 0
      contrib/dockerd-rootless.sh

+ 6 - 0
contrib/dockerd-rootless.sh

@@ -18,6 +18,12 @@
 # See the documentation for the further information: https://docs.docker.com/engine/security/rootless/
 # See the documentation for the further information: https://docs.docker.com/engine/security/rootless/
 
 
 set -e -x
 set -e -x
+case "$1" in
+	"check" | "install" | "uninstall")
+		echo "Did you mean 'dockerd-rootless-setuptool.sh $@' ?"
+		exit 1
+		;;
+esac
 if ! [ -w $XDG_RUNTIME_DIR ]; then
 if ! [ -w $XDG_RUNTIME_DIR ]; then
 	echo "XDG_RUNTIME_DIR needs to be set and writable"
 	echo "XDG_RUNTIME_DIR needs to be set and writable"
 	exit 1
 	exit 1