Merge "Make a2dissite fail softly if the site is not enabled"

This commit is contained in:
Jenkins 2017-04-19 06:34:20 +00:00 committed by Gerrit Code Review
commit 4b9022ddd7

View File

@ -186,7 +186,7 @@ function enable_apache_site {
function disable_apache_site {
local site=$@
if is_ubuntu; then
sudo a2dissite ${site}
sudo a2dissite ${site} || true
elif is_fedora || is_suse; then
local enabled_site_file="$APACHE_CONF_DIR/${site}.conf"
# Do nothing if no site config exists