Insure programs have necessary permission to work normally.
Signed-off-by: Liu Yinsi liuyinsi@163.com --- sparrow/0-package/common | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/sparrow/0-package/common b/sparrow/0-package/common index 2d7c9e3..6b4a834 100755 --- a/sparrow/0-package/common +++ b/sparrow/0-package/common @@ -27,6 +27,12 @@ cat >> /etc/modules-load.d/cifs <<EOF cifs EOF
+cat >> /etc/bashrc <<EOF +umask 002 +EOF + +source /etc/bashrc + server_ip=$(ip route get 1.2.3.4 | awk '{print $7; exit}')
: ${DOCKER_REGISTRY_HOST:=$server_ip}