1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-28 13:15:12 +01:00

make user homedir with helper

This commit is contained in:
Kyle Spearrin 2018-04-02 21:11:32 -04:00
parent a3b522a6b0
commit d1a47ba808
8 changed files with 40 additions and 0 deletions

View File

@ -18,6 +18,11 @@ then
useradd -r -u $LUID -g $USERNAME $USERNAME
fi
if [ ! -d "/home/$USERNAME" ]
then
mkhomedir_helper $USERNAME
fi
chown -R $USERNAME:$USERNAME /app
mkdir -p /etc/bitwarden/core
mkdir -p /etc/bitwarden/logs

View File

@ -18,6 +18,11 @@ then
useradd -r -u $LUID -g $USERNAME $USERNAME
fi
if [ ! -d "/home/$USERNAME" ]
then
mkhomedir_helper $USERNAME
fi
touch /var/log/cron.log
chown $USERNAME:$USERNAME /var/log/cron.log
chown -R $USERNAME:$USERNAME /app

View File

@ -18,6 +18,11 @@ then
useradd -r -u $LUID -g $USERNAME $USERNAME
fi
if [ ! -d "/home/$USERNAME" ]
then
mkhomedir_helper $USERNAME
fi
chown -R $USERNAME:$USERNAME /app
chown -R $USERNAME:$USERNAME /etc/iconserver

View File

@ -18,6 +18,11 @@ then
useradd -r -u $LUID -g $USERNAME $USERNAME
fi
if [ ! -d "/home/$USERNAME" ]
then
mkhomedir_helper $USERNAME
fi
mkdir -p /etc/bitwarden/identity
mkdir -p /etc/bitwarden/core
mkdir -p /etc/bitwarden/logs

View File

@ -18,6 +18,11 @@ then
useradd -r -u $LUID -g $USERNAME $USERNAME
fi
if [ ! -d "/home/$USERNAME" ]
then
mkhomedir_helper $USERNAME
fi
chown -R $USERNAME:$USERNAME /bitwarden_server
mkdir -p /etc/bitwarden/core/attachments
chown -R $USERNAME:$USERNAME /etc/bitwarden

View File

@ -18,6 +18,11 @@ then
useradd -r -u $LUID -g $USERNAME $USERNAME
fi
if [ ! -d "/home/$USERNAME" ]
then
mkhomedir_helper $USERNAME
fi
touch /var/log/cron.log
chown $USERNAME:$USERNAME /var/log/cron.log
mkdir -p /etc/bitwarden/mssql/backups

View File

@ -18,6 +18,11 @@ then
useradd -r -u $LUID -g $USERNAME $USERNAME
fi
if [ ! -d "/home/$USERNAME" ]
then
mkhomedir_helper $USERNAME
fi
chown -R $USERNAME:$USERNAME /etc/bitwarden
cp /etc/bitwarden/nginx/default.conf /etc/nginx/conf.d/default.conf
mkdir -p /etc/letsencrypt

View File

@ -18,6 +18,11 @@ then
useradd -r -u $LUID -g $USERNAME $USERNAME
fi
if [ ! -d "/home/$USERNAME" ]
then
mkhomedir_helper $USERNAME
fi
chown -R $USERNAME:$USERNAME /app
mkdir -p /bitwarden/env
mkdir -p /bitwarden/docker