dimikot / vzfirewall

vzfirewall is an extremely simple tool to configure opened ports and hosts for incoming connections in OpenVZ environment
GNU Lesser General Public License v2.1
15 stars 6 forks source link

vps.premount clean exit status #6

Closed jnorell closed 10 years ago

jnorell commented 10 years ago

Running vps.premount seems to work fine manually, and with vzmigrate, but I've seen failures in the environment from the init scripts, not sure why. It seems "type" no longer supports -p then, and vzfirewall -t sometimes returns false, too (or the if/then syntax fails?)

This puts a clean exit status in vps.premount, so the failure from tests for vzfiewall presence/syntax don't carry through as the exit status for all of vps.premount. Maybe this is "good enough" as my vzmigrate tests seemed to work, but I'll update vps.premount again if/when I can figure out what else is going on.

dimikot commented 10 years ago

Great!