Fixed assets directory permissions

This commit is contained in:
root
2019-05-29 14:09:15 +03:00
parent 48604a192d
commit 5d59c0a8d9
17 changed files with 251 additions and 2 deletions

View File

@ -76,6 +76,7 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
rm -f conf/zabbix.conf.php && \
rm -rf tests && \
./locale/make_mo.sh && \
chown --quiet -R apache:apache /usr/share/zabbix/ && \
apk del ${APK_FLAGS_COMMON} --purge \
build-dependencies && \
rm -rf /var/cache/apk/*

View File

@ -79,6 +79,7 @@ RUN groupadd --system zabbix && \
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
cut -d"'" -f 2 | sort | \
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
chown --quiet -R apache:apache /usr/share/zabbix && \
yum ${YUM_FLAGS_PERSISTANT} clean all && \
rm -rf /var/cache/yum/

View File

@ -84,6 +84,7 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
dpkg-reconfigure locales && \
find /usr/share/zabbix/locale -name '*.po' | xargs rm -f && \
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
chown --quiet -R www-data:www-data /usr/share/zabbix && \
DEBIAN_FRONTEND=noninteractive apt-get ${APT_FLAGS_COMMON} purge \
gettext \
ca-certificates \