mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-06-21 18:31:30 +02:00
Updated permissions
This commit is contained in:
parent
9fff3ed893
commit
65fcf10f2d
@ -80,9 +80,9 @@ RUN set -eux && \
|
|||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
./locale/make_mo.sh && \
|
./locale/make_mo.sh && \
|
||||||
ln -s "/etc/zabbix/web/zabbix.conf.php" "/usr/share/zabbix/conf/zabbix.conf.php" && \
|
ln -s "/etc/zabbix/web/zabbix.conf.php" "/usr/share/zabbix/conf/zabbix.conf.php" && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chgrp -R 0 /etc/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chmod -R g=u /etc/zabbix/ && \
|
||||||
chown --quiet -R zabbix:root /etc/apache2/ /etc/php7/ && \
|
chown --quiet -R zabbix:root /etc/apache2/ /etc/php7/ && \
|
||||||
chgrp -R 0 /etc/apache2/ /etc/php7/ && \
|
chgrp -R 0 /etc/apache2/ /etc/php7/ && \
|
||||||
chmod -R g=u /etc/apache2/ /etc/php7/ && \
|
chmod -R g=u /etc/apache2/ /etc/php7/ && \
|
||||||
|
@ -72,9 +72,9 @@ RUN set -eux && \
|
|||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
cut -d"'" -f 2 | sort | \
|
cut -d"'" -f 2 | sort | \
|
||||||
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chgrp -R 0 /etc/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chmod -R g=u /etc/zabbix/ && \
|
||||||
chown --quiet -R zabbix:root /etc/httpd/ /etc/php.d/ /etc/php.ini && \
|
chown --quiet -R zabbix:root /etc/httpd/ /etc/php.d/ /etc/php.ini && \
|
||||||
chgrp -R 0 /etc/httpd/ /etc/php.d/ /etc/php.ini && \
|
chgrp -R 0 /etc/httpd/ /etc/php.d/ /etc/php.ini && \
|
||||||
chmod -R g=u /etc/httpd/ /etc/php.d/ /etc/php.ini && \
|
chmod -R g=u /etc/httpd/ /etc/php.d/ /etc/php.ini && \
|
||||||
|
@ -90,9 +90,9 @@ RUN set -eux && \
|
|||||||
dpkg-reconfigure locales && \
|
dpkg-reconfigure locales && \
|
||||||
find /usr/share/zabbix/locale -name '*.po' | xargs rm -f && \
|
find /usr/share/zabbix/locale -name '*.po' | xargs rm -f && \
|
||||||
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chgrp -R 0 /etc/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chmod -R g=u /etc/zabbix/ && \
|
||||||
chown --quiet -R zabbix:root /etc/apache2/ /etc/php/7.2/ && \
|
chown --quiet -R zabbix:root /etc/apache2/ /etc/php/7.2/ && \
|
||||||
chgrp -R 0 /etc/apache2/ /etc/php/7.2/ && \
|
chgrp -R 0 /etc/apache2/ /etc/php/7.2/ && \
|
||||||
chmod -R g=u /etc/apache2/ /etc/php/7.2/ && \
|
chmod -R g=u /etc/apache2/ /etc/php/7.2/ && \
|
||||||
|
@ -79,9 +79,9 @@ RUN set -eux && \
|
|||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
./locale/make_mo.sh && \
|
./locale/make_mo.sh && \
|
||||||
ln -s "/etc/zabbix/web/zabbix.conf.php" "/usr/share/zabbix/conf/zabbix.conf.php" && \
|
ln -s "/etc/zabbix/web/zabbix.conf.php" "/usr/share/zabbix/conf/zabbix.conf.php" && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chgrp -R 0 /etc/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chmod -R g=u /etc/zabbix/ && \
|
||||||
chown --quiet -R zabbix:root /etc/apache2/ /etc/php7/ && \
|
chown --quiet -R zabbix:root /etc/apache2/ /etc/php7/ && \
|
||||||
chgrp -R 0 /etc/apache2/ /etc/php7/ && \
|
chgrp -R 0 /etc/apache2/ /etc/php7/ && \
|
||||||
chmod -R g=u /etc/apache2/ /etc/php7/ && \
|
chmod -R g=u /etc/apache2/ /etc/php7/ && \
|
||||||
|
@ -72,9 +72,9 @@ RUN set -eux && \
|
|||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
cut -d"'" -f 2 | sort | \
|
cut -d"'" -f 2 | sort | \
|
||||||
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chgrp -R 0 /etc/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chmod -R g=u /etc/zabbix/ && \
|
||||||
chown --quiet -R zabbix:root /etc/httpd/ /etc/php.d/ /etc/php.ini && \
|
chown --quiet -R zabbix:root /etc/httpd/ /etc/php.d/ /etc/php.ini && \
|
||||||
chgrp -R 0 /etc/httpd/ /etc/php.d/ /etc/php.ini && \
|
chgrp -R 0 /etc/httpd/ /etc/php.d/ /etc/php.ini && \
|
||||||
chmod -R g=u /etc/httpd/ /etc/php.d/ /etc/php.ini && \
|
chmod -R g=u /etc/httpd/ /etc/php.d/ /etc/php.ini && \
|
||||||
|
@ -90,9 +90,9 @@ RUN set -eux && \
|
|||||||
dpkg-reconfigure locales && \
|
dpkg-reconfigure locales && \
|
||||||
find /usr/share/zabbix/locale -name '*.po' | xargs rm -f && \
|
find /usr/share/zabbix/locale -name '*.po' | xargs rm -f && \
|
||||||
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
find /usr/share/zabbix/locale -name '*.sh' | xargs rm -f && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chgrp -R 0 /etc/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chmod -R g=u /etc/zabbix/ && \
|
||||||
chown --quiet -R zabbix:root /etc/apache2/ /etc/php/7.2/ && \
|
chown --quiet -R zabbix:root /etc/apache2/ /etc/php/7.2/ && \
|
||||||
chgrp -R 0 /etc/apache2/ /etc/php/7.2/ && \
|
chgrp -R 0 /etc/apache2/ /etc/php/7.2/ && \
|
||||||
chmod -R g=u /etc/apache2/ /etc/php/7.2/ && \
|
chmod -R g=u /etc/apache2/ /etc/php/7.2/ && \
|
||||||
|
@ -44,6 +44,7 @@ RUN set -eux && \
|
|||||||
supervisor && \
|
supervisor && \
|
||||||
rm -rf /etc/php7/php-fpm.d/www.conf && \
|
rm -rf /etc/php7/php-fpm.d/www.conf && \
|
||||||
rm -f /etc/nginx/conf.d/*.conf && \
|
rm -f /etc/nginx/conf.d/*.conf && \
|
||||||
|
ln -sf /dev/fd/2 /var/lib/nginx/logs/error.log && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
@ -73,15 +74,15 @@ RUN set -eux && \
|
|||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
./locale/make_mo.sh && \
|
./locale/make_mo.sh && \
|
||||||
ln -s "/etc/zabbix/web/zabbix.conf.php" "/usr/share/zabbix/conf/zabbix.conf.php" && \
|
ln -s "/etc/zabbix/web/zabbix.conf.php" "/usr/share/zabbix/conf/zabbix.conf.php" && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chgrp -R 0 /etc/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chmod -R g=u /etc/zabbix/ && \
|
||||||
chown --quiet -R zabbix:root /etc/nginx/ /etc/php7/php-fpm.d/ /etc/php7/php-fpm.conf && \
|
chown --quiet -R zabbix:root /etc/nginx/ /etc/php7/php-fpm.d/ /etc/php7/php-fpm.conf && \
|
||||||
chgrp -R 0 /etc/nginx/ /etc/php7/php-fpm.d/ /etc/php7/php-fpm.conf && \
|
chgrp -R 0 /etc/nginx/ /etc/php7/php-fpm.d/ /etc/php7/php-fpm.conf && \
|
||||||
chmod -R g=u /etc/nginx/ /etc/php7/php-fpm.d/ /etc/php7/php-fpm.conf && \
|
chmod -R g=u /etc/nginx/ /etc/php7/php-fpm.d/ /etc/php7/php-fpm.conf && \
|
||||||
chown --quiet -R zabbix:root /var/lib/php/session/ && \
|
chown --quiet -R zabbix:root /var/lib/php/session/ /var/lib/nginx/ && \
|
||||||
chgrp -R 0 /var/lib/php/session/ && \
|
chgrp -R 0 /var/lib/php/session/ /var/lib/nginx/ && \
|
||||||
chmod -R g=u /var/lib/php/session/ && \
|
chmod -R g=u /var/lib/php/session/ /var/lib/nginx/ && \
|
||||||
apk del --purge --no-network \
|
apk del --purge --no-network \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
@ -222,8 +222,6 @@ prepare_web_server() {
|
|||||||
else
|
else
|
||||||
echo "**** Impossible to enable SSL support for Nginx. Certificates are missed."
|
echo "**** Impossible to enable SSL support for Nginx. Certificates are missed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -sf /dev/fd/2 /var/log/nginx/error.log
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clear_deploy() {
|
clear_deploy() {
|
||||||
|
@ -68,9 +68,9 @@ RUN set -eux && \
|
|||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
cut -d"'" -f 2 | sort | \
|
cut -d"'" -f 2 | sort | \
|
||||||
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chgrp -R 0 /etc/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chmod -R g=u /etc/zabbix/ && \
|
||||||
chown --quiet -R zabbix:root /etc/nginx/ /etc/php-fpm.d/ /etc/php-fpm.conf && \
|
chown --quiet -R zabbix:root /etc/nginx/ /etc/php-fpm.d/ /etc/php-fpm.conf && \
|
||||||
chgrp -R 0 /etc/nginx/ /etc/php-fpm.d/ /etc/php-fpm.conf && \
|
chgrp -R 0 /etc/nginx/ /etc/php-fpm.d/ /etc/php-fpm.conf && \
|
||||||
chmod -R g=u /etc/nginx/ /etc/php-fpm.d/ /etc/php-fpm.conf && \
|
chmod -R g=u /etc/nginx/ /etc/php-fpm.d/ /etc/php-fpm.conf && \
|
||||||
|
@ -222,8 +222,6 @@ prepare_web_server() {
|
|||||||
else
|
else
|
||||||
echo "**** Impossible to enable SSL support for Nginx. Certificates are missed."
|
echo "**** Impossible to enable SSL support for Nginx. Certificates are missed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -sf /dev/fd/2 /var/log/nginx/error.log
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clear_deploy() {
|
clear_deploy() {
|
||||||
|
@ -43,6 +43,7 @@ RUN set -eux && \
|
|||||||
supervisor && \
|
supervisor && \
|
||||||
rm -rf /etc/php7/php-fpm.d/www.conf && \
|
rm -rf /etc/php7/php-fpm.d/www.conf && \
|
||||||
rm -f /etc/nginx/conf.d/*.conf && \
|
rm -f /etc/nginx/conf.d/*.conf && \
|
||||||
|
ln -sf /dev/fd/2 /var/lib/nginx/logs/error.log && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
ARG MAJOR_VERSION=master
|
ARG MAJOR_VERSION=master
|
||||||
@ -72,15 +73,15 @@ RUN set -eux && \
|
|||||||
rm -rf tests && \
|
rm -rf tests && \
|
||||||
./locale/make_mo.sh && \
|
./locale/make_mo.sh && \
|
||||||
ln -s "/etc/zabbix/web/zabbix.conf.php" "/usr/share/zabbix/conf/zabbix.conf.php" && \
|
ln -s "/etc/zabbix/web/zabbix.conf.php" "/usr/share/zabbix/conf/zabbix.conf.php" && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chgrp -R 0 /etc/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chmod -R g=u /etc/zabbix/ && \
|
||||||
chown --quiet -R zabbix:root /etc/nginx/ /etc/php7/php-fpm.d/ /etc/php7/php-fpm.conf && \
|
chown --quiet -R zabbix:root /etc/nginx/ /etc/php7/php-fpm.d/ /etc/php7/php-fpm.conf && \
|
||||||
chgrp -R 0 /etc/nginx/ /etc/php7/php-fpm.d/ /etc/php7/php-fpm.conf && \
|
chgrp -R 0 /etc/nginx/ /etc/php7/php-fpm.d/ /etc/php7/php-fpm.conf && \
|
||||||
chmod -R g=u /etc/nginx/ /etc/php7/php-fpm.d/ /etc/php7/php-fpm.conf && \
|
chmod -R g=u /etc/nginx/ /etc/php7/php-fpm.d/ /etc/php7/php-fpm.conf && \
|
||||||
chown --quiet -R zabbix:root /var/lib/php/session/ && \
|
chown --quiet -R zabbix:root /var/lib/php/session/ /var/lib/nginx/ && \
|
||||||
chgrp -R 0 /var/lib/php/session/ && \
|
chgrp -R 0 /var/lib/php/session/ /var/lib/nginx/ && \
|
||||||
chmod -R g=u /var/lib/php/session/ && \
|
chmod -R g=u /var/lib/php/session/ /var/lib/nginx/ && \
|
||||||
apk del --purge --no-network \
|
apk del --purge --no-network \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
@ -222,8 +222,6 @@ prepare_web_server() {
|
|||||||
else
|
else
|
||||||
echo "**** Impossible to enable SSL support for Nginx. Certificates are missed."
|
echo "**** Impossible to enable SSL support for Nginx. Certificates are missed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -sf /dev/fd/2 /var/log/nginx/error.log
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clear_deploy() {
|
clear_deploy() {
|
||||||
|
@ -68,9 +68,9 @@ RUN set -eux && \
|
|||||||
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
cat /usr/share/zabbix/include/locales.inc.php | grep display | grep true | awk '{$1=$1};1' | \
|
||||||
cut -d"'" -f 2 | sort | \
|
cut -d"'" -f 2 | sort | \
|
||||||
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
xargs -I '{}' bash -c 'echo "{}" && localedef -c -i {} -f UTF-8 {}.UTF-8 2>/dev/null' && \
|
||||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chgrp -R 0 /etc/zabbix/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/conf/ && \
|
chmod -R g=u /etc/zabbix/ && \
|
||||||
chown --quiet -R zabbix:root /etc/nginx/ /etc/php-fpm.d/ /etc/php-fpm.conf && \
|
chown --quiet -R zabbix:root /etc/nginx/ /etc/php-fpm.d/ /etc/php-fpm.conf && \
|
||||||
chgrp -R 0 /etc/nginx/ /etc/php-fpm.d/ /etc/php-fpm.conf && \
|
chgrp -R 0 /etc/nginx/ /etc/php-fpm.d/ /etc/php-fpm.conf && \
|
||||||
chmod -R g=u /etc/nginx/ /etc/php-fpm.d/ /etc/php-fpm.conf && \
|
chmod -R g=u /etc/nginx/ /etc/php-fpm.d/ /etc/php-fpm.conf && \
|
||||||
|
@ -222,8 +222,6 @@ prepare_web_server() {
|
|||||||
else
|
else
|
||||||
echo "**** Impossible to enable SSL support for Nginx. Certificates are missed."
|
echo "**** Impossible to enable SSL support for Nginx. Certificates are missed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -sf /dev/fd/2 /var/log/nginx/error.log
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clear_deploy() {
|
clear_deploy() {
|
||||||
|
@ -222,8 +222,6 @@ prepare_web_server() {
|
|||||||
else
|
else
|
||||||
echo "**** Impossible to enable SSL support for Nginx. Certificates are missed."
|
echo "**** Impossible to enable SSL support for Nginx. Certificates are missed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -sf /dev/fd/2 /var/log/nginx/error.log
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clear_deploy() {
|
clear_deploy() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user