Browse Source

do not run bitwarden as root

keep-around/228b246f8ed2d2641e2bc688e87bbb20c089b33f
Girish Ramakrishnan 1 year ago
parent
commit
aa4f3ad651
  1. 2
      start.sh
  2. 2
      supervisor/bitwarden_rs.conf

2
start.sh

@ -51,6 +51,8 @@ fi
export ADMIN_TOKEN=$(cat /app/data/admin_token)
echo "=> Admin token: ${ADMIN_TOKEN}"
chown -R cloudron:cloudron /run/bitwardenrs /app/data
echo "=> Starting supervisord"
rm -f /run/apache2/apache2.pid
exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i Bitwarden

2
supervisor/bitwarden_rs.conf

@ -1,7 +1,7 @@
[program:core]
directory=/app/code/
command=/app/code/bitwarden_rs
user=root
user=cloudron
autostart=true
autorestart=true
stdout_logfile=/dev/stdout

Loading…
Cancel
Save