a2dissite will return a non-zero error code if the site that is being disabled is not currently enabled (that is, if the conf file for it does not exist). This can happen during development if you've been messing with files by hand. Rather than exploding out of a ./stack.sh, accept the missing file as meaning "it's disabled" and carry one. The rpm version of disable, which does not use a2dissite, does this already. Change-Id: Ie5dfd42efdff4bdba5ffaa765af000dd8e1d596e
9.3 KiB
9.3 KiB