diff options
Diffstat (limited to 'utils/lib.sh')
| -rwxr-xr-x | utils/lib.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/utils/lib.sh b/utils/lib.sh index 9d5068646..aaeb5093b 100755 --- a/utils/lib.sh +++ b/utils/lib.sh @@ -634,9 +634,15 @@ if [[ -z "${APACHE_SITES_AVAILABE}" ]]; then fi apache_is_installed() { - (command -v apachectl \ - && command -v a2ensite \ - && command -v a2dissite ) &>/dev/null + case $DIST_ID-$DIST_VERS in + ubuntu-*|debian-*) + (command -v apachectl \ + && command -v a2ensite \ + && command -v a2dissite ) &>/dev/null + ;; + arch) (command -v httpd) ;; + fedora) (command -v httpd) ;; + esac } apache_reload() { |