File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
openwisp_wireguard_updater Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -123,8 +123,8 @@ watch_configuration_change() {
123123 if [[ " $REDIS_PORT " ]]; then
124124 _REDIS_CMD=" $_REDIS_CMD -p $REDIS_PORT "
125125 fi
126- if [[ " $REDIS_PASSWORD " ]]; then
127- _REDIS_CMD=" $_REDIS_CMD -a $REDIS_PASSWORD "
126+ if [[ " $REDIS_PASS " ]]; then
127+ _REDIS_CMD=" $_REDIS_CMD -a $REDIS_PASS "
128128 fi
129129 while true ; do
130130 if [ -f " $_TIMESTAMP_FILE " ]; then
Original file line number Diff line number Diff line change 99KEY = os .environ .get ('WIREGUARD_UPDATER_KEY' )
1010REDIS_HOST = os .environ .get ('REDIS_HOST' )
1111REDIS_PORT = os .environ .get ('REDIS_PORT' )
12- REDIS_PASSWORD = os .environ .get ('REDIS_PASSWORD ' )
12+ REDIS_PASS = os .environ .get ('REDIS_PASS ' )
1313REDIS_DATABASE = os .environ .get ('REDIS_DB' , 15 )
1414
1515
1616def _trigger_configuration_update (vpn_id ):
1717 redis_kwargs = {}
18- if REDIS_PASSWORD :
19- redis_kwargs ['password' ] = REDIS_PASSWORD
18+ if REDIS_PASS :
19+ redis_kwargs ['password' ] = REDIS_PASS
2020 if REDIS_PORT :
2121 redis_kwargs ['port' ] = REDIS_PORT
2222 unix_timestamp = int (datetime .now ().timestamp ())
You can’t perform that action at this time.
0 commit comments