Skip to content

Commit c4edfb0

Browse files
authored
[Issue #1269] fix rsync-cluster and metadata backup scripts (#1270)
1 parent 19860cf commit c4edfb0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

scripts/sbin/meta-tool.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ ETCD_FILE=""
7373
while [[ "$#" -gt 0 ]]; do
7474
case $1 in
7575
--etcd-dir) ETCD_DATA_DIR="$2"; shift ;;
76-
-e|--etcd-tmp-dir) ETCD_TMP_DIR="$2"; shift ;;
76+
--etcd-tmp-dir) ETCD_TMP_DIR="$2"; shift ;;
7777
-m|--db-file) DB_FILE="$2"; shift ;;
78-
--etcd-file) ETCD_FILE="$2"; shift ;;
78+
-e|--etcd-file) ETCD_FILE="$2"; shift ;;
7979
*) echo "Unknown parameter: $1"; exit 1 ;;
8080
esac
8181
shift

scripts/sbin/rsync-cluster.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ fi
5353
# Sync retina node
5454
# ---------------------------
5555
if [[ -f "$PIXELS_HOME/etc/retina" ]]; then
56-
read -r retina home < "$PIXELS_HOME/etc/retina"
57-
sync_node_lib "$retina" "$home"
56+
while read -r retina home; do
57+
# Skip empty lines or comments
58+
[[ -z "$retina" || "$retina" =~ ^# ]] && continue
59+
sync_node_lib "$retina" "$home"
60+
done < "$PIXELS_HOME/etc/retina"
5861
fi
5962

0 commit comments

Comments
 (0)