Merge "Make a2dissite fail softly if the site is not enabled"
This commit is contained in:
commit
4b9022ddd7
@ -186,7 +186,7 @@ function enable_apache_site {
|
|||||||
function disable_apache_site {
|
function disable_apache_site {
|
||||||
local site=$@
|
local site=$@
|
||||||
if is_ubuntu; then
|
if is_ubuntu; then
|
||||||
sudo a2dissite ${site}
|
sudo a2dissite ${site} || true
|
||||||
elif is_fedora || is_suse; then
|
elif is_fedora || is_suse; then
|
||||||
local enabled_site_file="$APACHE_CONF_DIR/${site}.conf"
|
local enabled_site_file="$APACHE_CONF_DIR/${site}.conf"
|
||||||
# Do nothing if no site config exists
|
# Do nothing if no site config exists
|
||||||
|
Loading…
Reference in New Issue
Block a user