created setup script
This commit is contained in:
13
scripts/clear_data.sh
Executable file
13
scripts/clear_data.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR=$(readlink -f $(dirname "${BASH_SOURCE[0]}"))
|
||||
REPO_DIR=$(dirname $SCRIPT_DIR)
|
||||
|
||||
rm -rf \
|
||||
$REPO_DIR/mosquitto/config/pwfile \
|
||||
$REPO_DIR/mosquitto/data/mosquitto.db \
|
||||
$REPO_DIR/zigbee2mqtt/secret.yaml \
|
||||
$REPO_DIR/zigbee2mqtt/*.json \
|
||||
$REPO_DIR/zigbee2mqtt/log/* \
|
||||
$REPO_DIR/zigbee2mqtt/database.db \
|
||||
Reference in New Issue
Block a user