mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
make user homedir with helper
This commit is contained in:
parent
a3b522a6b0
commit
d1a47ba808
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user