updated docker_startup to fix git permission error
This commit is contained in:
@@ -22,8 +22,14 @@ if [ -d "/config" ];then
|
||||
CONFDIR="/config"
|
||||
fi
|
||||
|
||||
# create home directory with full access that git can access
|
||||
mkdir -p /home/mykb
|
||||
chmod 0777 -R /home/mykb
|
||||
|
||||
cd /opt/mykb
|
||||
|
||||
export NODE_ENV=production
|
||||
export HOME=/home/mykb
|
||||
|
||||
if [ -z "$PUID" ];then
|
||||
echo 'no PUID set running as default user'
|
||||
|
||||
@@ -32,6 +32,9 @@ export default async function checkLogin(req) {
|
||||
verified: true,
|
||||
jwt,
|
||||
}
|
||||
} else if (res.status === 400) {
|
||||
user = {}
|
||||
delete localStorage.jwt
|
||||
}
|
||||
})
|
||||
.catch(() => {})
|
||||
|
||||
Reference in New Issue
Block a user