Skip to content

Commit

Permalink
fix customizing post_up or post_down commands
Browse files Browse the repository at this point in the history
  • Loading branch information
bigmoby committed Apr 5, 2021
1 parent 996c32c commit dbf1326
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wireguard_client/rootfs/etc/cont-init.d/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ if ! bashio::config.has_value 'interface.post_up'; then
bashio::exit.nok 'post_up command is required'
else
post_up=$(bashio::config 'interface.post_up')
echo "PostUp = ${post_up}" >> "${config}"
echo "PostUp = ${post_up}" >> "${config}"
fi

# Check if custom post_down value
if ! bashio::config.has_value 'interface.post_down'; then
bashio::exit.nok 'post_down command is required'
else
post_up=$(bashio::config 'interface.post_down')
echo "PostDown = ${post_down}" >> "${config}"
post_down=$(bashio::config 'interface.post_down')
echo "PostDown = ${post_down}" >> "${config}"
fi

# Status API Storage
Expand Down

0 comments on commit dbf1326

Please sign in to comment.