From 40242a78e59a4abb283f14ed5c3d47aebd4d8e6c Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 2 Apr 2018 19:58:37 -0400 Subject: [PATCH] make bitwarden user home dir --- src/Admin/entrypoint.sh | 2 ++ src/Api/entrypoint.sh | 2 ++ src/Icons/entrypoint.sh | 2 ++ src/Identity/entrypoint.sh | 2 ++ util/Attachments/entrypoint.sh | 2 ++ util/MsSql/entrypoint.sh | 2 ++ util/Nginx/entrypoint.sh | 2 ++ util/Setup/entrypoint.sh | 2 ++ 8 files changed, 16 insertions(+) diff --git a/src/Admin/entrypoint.sh b/src/Admin/entrypoint.sh index cc9ba5d68f..7d86122dba 100644 --- a/src/Admin/entrypoint.sh +++ b/src/Admin/entrypoint.sh @@ -18,6 +18,8 @@ then useradd -r -u $LUID -g $USERNAME $USERNAME fi +mkdir -p /home/$USERNAME +chown -R $USERNAME:$USERNAME /home/$USERNAME chown -R $USERNAME:$USERNAME /app mkdir -p /etc/bitwarden/core mkdir -p /etc/bitwarden/logs diff --git a/src/Api/entrypoint.sh b/src/Api/entrypoint.sh index 1c3d96ef98..f2dc7e98af 100644 --- a/src/Api/entrypoint.sh +++ b/src/Api/entrypoint.sh @@ -18,6 +18,8 @@ then useradd -r -u $LUID -g $USERNAME $USERNAME fi +mkdir -p /home/$USERNAME +chown -R $USERNAME:$USERNAME /home/$USERNAME touch /var/log/cron.log chown $USERNAME:$USERNAME /var/log/cron.log chown -R $USERNAME:$USERNAME /app diff --git a/src/Icons/entrypoint.sh b/src/Icons/entrypoint.sh index 9d26f3fc86..6946c297cf 100644 --- a/src/Icons/entrypoint.sh +++ b/src/Icons/entrypoint.sh @@ -18,6 +18,8 @@ then useradd -r -u $LUID -g $USERNAME $USERNAME fi +mkdir -p /home/$USERNAME +chown -R $USERNAME:$USERNAME /home/$USERNAME chown -R $USERNAME:$USERNAME /app chown -R $USERNAME:$USERNAME /etc/iconserver diff --git a/src/Identity/entrypoint.sh b/src/Identity/entrypoint.sh index 99d238c39d..69206cbc42 100644 --- a/src/Identity/entrypoint.sh +++ b/src/Identity/entrypoint.sh @@ -18,6 +18,8 @@ then useradd -r -u $LUID -g $USERNAME $USERNAME fi +mkdir -p /home/$USERNAME +chown -R $USERNAME:$USERNAME /home/$USERNAME mkdir -p /etc/bitwarden/identity mkdir -p /etc/bitwarden/core mkdir -p /etc/bitwarden/logs diff --git a/util/Attachments/entrypoint.sh b/util/Attachments/entrypoint.sh index 143473d422..46aba86e66 100644 --- a/util/Attachments/entrypoint.sh +++ b/util/Attachments/entrypoint.sh @@ -18,6 +18,8 @@ then useradd -r -u $LUID -g $USERNAME $USERNAME fi +mkdir -p /home/$USERNAME +chown -R $USERNAME:$USERNAME /home/$USERNAME chown -R $USERNAME:$USERNAME /bitwarden_server mkdir -p /etc/bitwarden/core/attachments chown -R $USERNAME:$USERNAME /etc/bitwarden diff --git a/util/MsSql/entrypoint.sh b/util/MsSql/entrypoint.sh index ab453e7ad9..36f782de78 100644 --- a/util/MsSql/entrypoint.sh +++ b/util/MsSql/entrypoint.sh @@ -18,6 +18,8 @@ then useradd -r -u $LUID -g $USERNAME $USERNAME fi +mkdir -p /home/$USERNAME +chown -R $USERNAME:$USERNAME /home/$USERNAME touch /var/log/cron.log chown $USERNAME:$USERNAME /var/log/cron.log mkdir -p /etc/bitwarden/mssql/backups diff --git a/util/Nginx/entrypoint.sh b/util/Nginx/entrypoint.sh index 13fff4b93c..20be4f46d9 100644 --- a/util/Nginx/entrypoint.sh +++ b/util/Nginx/entrypoint.sh @@ -18,6 +18,8 @@ then useradd -r -u $LUID -g $USERNAME $USERNAME fi +mkdir -p /home/$USERNAME +chown -R $USERNAME:$USERNAME /home/$USERNAME chown -R $USERNAME:$USERNAME /etc/bitwarden cp /etc/bitwarden/nginx/default.conf /etc/nginx/conf.d/default.conf mkdir -p /etc/letsencrypt diff --git a/util/Setup/entrypoint.sh b/util/Setup/entrypoint.sh index 4500d31ec8..b42e682900 100644 --- a/util/Setup/entrypoint.sh +++ b/util/Setup/entrypoint.sh @@ -18,6 +18,8 @@ then useradd -r -u $LUID -g $USERNAME $USERNAME fi +mkdir -p /home/$USERNAME +chown -R $USERNAME:$USERNAME /home/$USERNAME chown -R $USERNAME:$USERNAME /app mkdir -p /bitwarden/env mkdir -p /bitwarden/docker