diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2020-04-06 17:59:06 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2020-04-06 17:59:06 +0200 |
commit | eb0d4646d818fe12032379aae2fcd8b5bdb6467e (patch) | |
tree | 385fba8e0c54a4159a28fb6db78d1ee448092a2b /utils/lib.sh | |
parent | c81849cb5a22d937c0f1de1d02d1fb8e3a7849cd (diff) | |
download | searxng-eb0d4646d818fe12032379aae2fcd8b5bdb6467e.tar.gz searxng-eb0d4646d818fe12032379aae2fcd8b5bdb6467e.zip |
docs: rework of chapter "Install with apache"
BTW: normalize installation-nginx.rst
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() { |