소스 검색

scripts: make sure /etc/docker exists (#6791)

Colin Kubon 2 주 전
부모
커밋
c217be06c6
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      _modules/scripts/ipv6_controller.sh

+ 1 - 0
_modules/scripts/ipv6_controller.sh

@@ -155,6 +155,7 @@ docker_daemon_edit(){
     fi
 
     if [[ $ans =~ ^[Yy]$ ]]; then
+      mkdir -p "$(dirname "$DOCKER_DAEMON_CONFIG")"
       if [[ -n "$DOCKER_MAJOR" && "$DOCKER_MAJOR" -lt 27 ]]; then
         cat > "$DOCKER_DAEMON_CONFIG" <<EOF
 {