Fix missing path of fping and fping6

Error message:

  At least one of '/usr/bin/fping', '/usr/bin/fping6' must exist.
  Both are missing in the system.
This commit is contained in:
Jonny Lai 2016-09-07 18:32:23 +08:00
parent 170f30befe
commit b49ea5ba02
No known key found for this signature in database
GPG Key ID: FBB6918B261FF774
2 changed files with 8 additions and 2 deletions

View File

@ -96,7 +96,10 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \ rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
apk del ${APK_FLAGS_COMMON} --purge \ apk del ${APK_FLAGS_COMMON} --purge \
build-dependencies && \ build-dependencies && \
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/* && \
# Fix missing path of fping and fping6.
ln -s /usr/sbin/fping /usr/bin/ && \
ln -s /usr/sbin/fping6 /usr/bin/
EXPOSE 10051/TCP 162/UDP EXPOSE 10051/TCP 162/UDP

View File

@ -91,7 +91,10 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \ rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
apk del ${APK_FLAGS_COMMON} --purge \ apk del ${APK_FLAGS_COMMON} --purge \
build-dependencies && \ build-dependencies && \
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/* && \
# Fix missing path of fping and fping6.
ln -s /usr/sbin/fping /usr/bin/ && \
ln -s /usr/sbin/fping6 /usr/bin/
EXPOSE 10051/TCP 162/UDP EXPOSE 10051/TCP 162/UDP