updated docker_startup to fix git permission error
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
@@ -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(() => {})
|
||||||
|
|||||||
Reference in New Issue
Block a user