Repository: redis/redis

Issue:
[BUG]create-cluster doesn't clean appendonlydir in redis 7.0
**Describe the bug**

A short description of the bug.

create-cluster doesn't clean appendonlydir

**To reproduce**

```
Chens-MacBook-Pro:create-cluster leon$ ls
30001.log		appendonlydir		dump-30006.rdb
30002.log		create-cluster		nodes-30001.conf
30003.log		dump-30001.rdb		nodes-30002.conf
30004.log		dump-30002.rdb		nodes-30003.conf
30005.log		dump-30003.rdb		nodes-30004.conf
30006.log		dump-30004.rdb		nodes-30005.conf
README			dump-30005.rdb		nodes-30006.conf
```

```
Chens-MacBook-Pro:create-cluster leon$ ./create-cluster clean
Chens-MacBook-Pro:create-cluster leon$ ls
README		appendonlydir	create-cluster
Chens-MacBook-Pro:create-cluster leon$ cd appendonlydir/
Chens-MacBook-Pro:appendonlydir leon$ ls
appendonly-30001.aof.1.base.rdb	appendonly-30004.aof.2.base.rdb
appendonly-30001.aof.1.incr.aof	appendonly-30004.aof.2.incr.aof
appendonly-30001.aof.manifest	appendonly-30004.aof.manifest
appendonly-30002.aof.1.base.rdb	appendonly-30005.aof.2.base.rdb
appendonly-30002.aof.1.incr.aof	appendonly-30005.aof.2.incr.aof
appendonly-30002.aof.manifest	appendonly-30005.aof.manifest
appendonly-30003.aof.1.base.rdb	appendonly-30006.aof.2.base.rdb
appendonly-30003.aof.1.incr.aof	appendonly-30006.aof.2.incr.aof
appendonly-30003.aof.manifest	appendonly-30006.aof.manifest
```

Steps to reproduce the behavior and/or a minimal code sample.

**Expected behavior**

A description of what you expected to happen.

can clean appendonlydir

**Additional information**

Any additional information that is relevant to the problem.



Discussion:
i suppose we juse forget to call `rm -rf appendonlydir`
https://github.com/redis/redis/blob/6ca97da0fcea4c260e656c3a05b12c34e5a4d63d/redis.conf#L1344-L1375

Patch:
diff --git a/utils/create-cluster/create-cluster b/utils/create-cluster/create-cluster
index 72966683028..d97ee2b9cce 100755
--- a/utils/create-cluster/create-cluster
+++ b/utils/create-cluster/create-cluster
@@ -28,7 +28,7 @@ then
     while [ $((PORT < ENDPORT)) != "0" ]; do
         PORT=$((PORT+1))
         echo "Starting $PORT"
-        $BIN_PATH/redis-server --port $PORT  --protected-mode $PROTECTED_MODE --cluster-enabled yes --cluster-config-file nodes-${PORT}.conf --cluster-node-timeout $TIMEOUT --appendonly yes --appendfilename appendonly-${PORT}.aof --dbfilename dump-${PORT}.rdb --logfile ${PORT}.log --daemonize yes ${ADDITIONAL_OPTIONS}
+        $BIN_PATH/redis-server --port $PORT --protected-mode $PROTECTED_MODE --cluster-enabled yes --cluster-config-file nodes-${PORT}.conf --cluster-node-timeout $TIMEOUT --appendonly yes --appendfilename appendonly-${PORT}.aof --appenddirname appendonlydir-${PORT} --dbfilename dump-${PORT}.rdb --logfile ${PORT}.log --daemonize yes ${ADDITIONAL_OPTIONS}
     done
     exit 0
 fi
@@ -95,20 +95,25 @@ fi
 
 if [ "$1" == "clean" ]
 then
+    echo "Cleaning *.log"
     rm -rf *.log
-    rm -rf appendonly*.aof
-    rm -rf dump*.rdb
-    rm -rf nodes*.conf
+    echo "Cleaning appendonlydir-*"
+    rm -rf appendonlydir-*
+    echo "Cleaning dump-*.rdb"
+    rm -rf dump-*.rdb
+    echo "Cleaning nodes-*.conf"
+    rm -rf nodes-*.conf
     exit 0
 fi
 
 if [ "$1" == "clean-logs" ]
 then
+    echo "Cleaning *.log"
     rm -rf *.log
     exit 0
 fi
 
-echo "Usage: $0 [start|create|stop|watch|tail|clean|call]"
+echo "Usage: $0 [start|create|stop|watch|tail|tailall|clean|clean-logs|call]"
 echo "start       -- Launch Redis Cluster instances."
 echo "create [-f] -- Create a cluster using redis-cli --cluster create."
 echo "stop        -- Stop Redis Cluster instances."