]> Raphaël G. Git Repositories - distcook/commitdiff
Optional ihttpd package
authorRaphaël Gertz <git@rapsys.eu>
Wed, 6 Jul 2016 13:34:01 +0000 (15:34 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 6 Jul 2016 13:34:01 +0000 (15:34 +0200)
lib/install.sh

index df24193aa662aea2b69381e028bfd8d4b17355b4..3ea2e8031f39798dc3e00573b5daf2f34b95f50e 100755 (executable)
@@ -115,4 +115,6 @@ if [ ! -z "$LOCALE_ALT" -a "$LOCALE_ALT" != 'en' ]; then
 fi
 
 # Install ihttpd
-LC_ALL=C urpmi --no-verify-rpm --no-recommends --noclean --auto --root=$PWD/root ${IHTTPD_RPM}
+if [ ! -z "${IHTTPD_RPM}" -a -f "${IHTTPD_RPM}" ]; then
+       LC_ALL=C urpmi --no-verify-rpm --no-recommends --noclean --auto --root=$PWD/root ${IHTTPD_RPM}
+fi