From 7e9addf1a31499c60e4b7d3f6d9c8a6957e81939 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 9 Dec 2019 07:17:59 +0300 Subject: [PATCH] set core.filemode false on local repos before pulling updates, bind to 127.0.0.1 only by default --- .env | 2 +- app/startup.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 29e09b9..c1e898d 100644 --- a/.env +++ b/.env @@ -5,4 +5,4 @@ OWNER_UID=1000 OWNER_GID=1000 HTTP_HOST=localhost -HTTP_PORT=8280 +HTTP_PORT=127.0.0.1:8280 diff --git a/app/startup.sh b/app/startup.sh index 173e2df..7604440 100755 --- a/app/startup.sh +++ b/app/startup.sh @@ -13,13 +13,17 @@ if [ ! -d $DST_DIR ]; then mkdir -p $DST_DIR git clone $SRC_REPO $DST_DIR else - cd $DST_DIR && git pull origin master + cd $DST_DIR && \ + git config core.filemode false && \ + git pull origin master fi if [ ! -d $DST_DIR/plugins.local/nginx_xaccel ]; then git clone https://git.tt-rss.org/fox/ttrss-nginx-xaccel.git $DST_DIR/plugins.local/nginx_xaccel else - cd $DST_DIR/plugins.local/nginx_xaccel && git pull origin master + cd $DST_DIR/plugins.local/nginx_xaccel && \ + git config core.filemode false && \ + git pull origin master fi chown -R $OWNER_UID:$OWNER_GID $DST_DIR