Commit 1316dea5 authored by Jamie Nguyen's avatar Jamie Nguyen
Browse files

Exit if no domains have been detected

parent 5080072a
......@@ -240,6 +240,16 @@ Symbiosis::Domains.each(prefix) do |domain|
configurations << this_config
# Sometimes, significant memory pressure can cause Etc.getpwuid(@uid).name
# to fail. symbiosis-httpd-configure is then led to believe there aren't any
# domains and will delete all sites from sites-enabled. Exit instead.
if configurations.empty?
verbose "\tNo domains detected. This could be due to memory pressure. Exiting."
exit 1
# Now see to the mass hosting stuff.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment