updated docker_startup to fix git permission error

This commit is contained in:
JJ Kasper
2018-11-24 16:54:34 -06:00
parent f634ec7bba
commit 873734b1e0
2 changed files with 9 additions and 0 deletions

View File

@@ -22,8 +22,14 @@ if [ -d "/config" ];then
CONFDIR="/config" CONFDIR="/config"
fi fi
# create home directory with full access that git can access
mkdir -p /home/mykb
chmod 0777 -R /home/mykb
cd /opt/mykb cd /opt/mykb
export NODE_ENV=production export NODE_ENV=production
export HOME=/home/mykb
if [ -z "$PUID" ];then if [ -z "$PUID" ];then
echo 'no PUID set running as default user' echo 'no PUID set running as default user'

View File

@@ -32,6 +32,9 @@ export default async function checkLogin(req) {
verified: true, verified: true,
jwt, jwt,
} }
} else if (res.status === 400) {
user = {}
delete localStorage.jwt
} }
}) })
.catch(() => {}) .catch(() => {})