Browse code

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

Jenkins authored on 2017/04/19 15:34:20
Showing 1 changed files
... ...
@@ -186,7 +186,7 @@ function enable_apache_site {
186 186
 function disable_apache_site {
187 187
     local site=$@
188 188
     if is_ubuntu; then
189
-        sudo a2dissite ${site}
189
+        sudo a2dissite ${site} || true
190 190
     elif is_fedora || is_suse; then
191 191
         local enabled_site_file="$APACHE_CONF_DIR/${site}.conf"
192 192
         # Do nothing if no site config exists