mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Merge pull request #30077 from CodeJuan/master
Automatic merge from submit-queue fixed regex error, which replace 2 line in template file fixes #30074
This commit is contained in:
commit
b658d1f297
@ -29,7 +29,7 @@ while read -ra LINE; do
|
|||||||
sed -i -e "s|^bind.*$|bind ${LINE}|" ${CFG}
|
sed -i -e "s|^bind.*$|bind ${LINE}|" ${CFG}
|
||||||
elif [ "$(/opt/redis/redis-cli -h $LINE info | grep role | sed 's,\r$,,')" = "role:master" ]; then
|
elif [ "$(/opt/redis/redis-cli -h $LINE info | grep role | sed 's,\r$,,')" = "role:master" ]; then
|
||||||
# TODO: More restrictive regex?
|
# TODO: More restrictive regex?
|
||||||
sed -i -e "s|^.*slaveof.*$|slaveof ${LINE} ${PORT}|" ${CFG}
|
sed -i -e "s|^# slaveof.*$|slaveof ${LINE} ${PORT}|" ${CFG}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user