On Fri, Jan 29, 2021 at 09:09:09AM +0800, Wu Fengguang wrote:
最好避免改人家的全局设置。 这个修改的影响面超过了我们所需。
OK
Thanks, Yinsi
On Thu, Jan 28, 2021 at 08:38:56PM +0800, Liu Yinsi wrote:
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}
2.23.0