Skip to content

Commit 09c7d23

Browse files
scripts: make sure /etc/docker exists
1 parent 46f0581 commit 09c7d23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

_modules/scripts/ipv6_controller.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ docker_daemon_edit(){
155155
fi
156156

157157
if [[ $ans =~ ^[Yy]$ ]]; then
158+
mkdir -p "$(dirname "$DOCKER_DAEMON_CONFIG")"
158159
if [[ -n "$DOCKER_MAJOR" && "$DOCKER_MAJOR" -lt 27 ]]; then
159160
cat > "$DOCKER_DAEMON_CONFIG" <<EOF
160161
{

0 commit comments

Comments
 (0)