No completion file on mesh install

This commit is contained in:
Bob Mottram 2016-07-12 16:00:51 +01:00
parent b4e2ad3fa1
commit e479c43333
No known key found for this signature in database
GPG Key ID: BA68F26108DC9F87
1 changed files with 7 additions and 3 deletions

View File

@ -189,8 +189,10 @@ function remove_tox {
} }
function configure_firewall_for_tox { function configure_firewall_for_tox {
if grep -Fxq "configure_firewall_for_tox" $COMPLETION_FILE; then if [ -f $COMPLETION_FILE ]; then
return if grep -Fxq "configure_firewall_for_tox" $COMPLETION_FILE; then
return
fi
fi fi
if [[ $INSTALLED_WITHIN_DOCKER == "yes" ]]; then if [[ $INSTALLED_WITHIN_DOCKER == "yes" ]]; then
# docker does its own firewalling # docker does its own firewalling
@ -204,7 +206,9 @@ function configure_firewall_for_tox {
save_firewall_settings save_firewall_settings
OPEN_PORTS+=("Tox $TOX_PORT") OPEN_PORTS+=("Tox $TOX_PORT")
echo 'configure_firewall_for_tox' >> $COMPLETION_FILE if [ -f $COMPLETION_FILE ]; then
echo 'configure_firewall_for_tox' >> $COMPLETION_FILE
fi
} }
function tox_avahi { function tox_avahi {