Updateself error

I Run Updateself in script sh and i have this error

WARNING: This script is running as the root user!
If you are running a standard deployment this script should be running as a dedicated Bitwarden User as per the documentation.

How can I bypass this error?

Hi @laurent78! Have you already followed the steps here?

Just running into this myself. I installed bitwarden some time ago and never saw these instructions. Is this safe to ignore and run as root?

@drgambit Welcome to the forum!

Have you already followed the steps here ?

No, I have not. I don’t think these steps existed when I initially installed bitwarden on my server.

Yeha, these did not exist when I installed either. These instructions point to /opt/bitwarden, something I do not have in my installation. It appears my bitwarden is installed in /root/bwdata

Whats the upgrade process here?

@laurent78 You can use expect as workaround.

Something like this:

#!/usr/bin/expect -f
set timeout 300

# updateself ausführen
spawn /home/bitwarden/bitwarden.sh updateself
expect {
    "Do you still want to continue? (y/n):" { send "y\r"; exp_continue }
    timeout { puts "Timeout bei updateself"; exit 1 }
    eof
}

# update ausführen
spawn /home/bitwarden/bitwarden.sh update
expect {
    "Do you still want to continue? (y/n):" { send "y\r"; exp_continue }
    timeout { puts "Timeout bei update"; exit 1 }
    eof
}

# restart ausführen
spawn /home/bitwarden/bitwarden.sh restart
expect {
    "Do you still want to continue? (y/n):" { send "y\r"; exp_continue }
    timeout { puts "Timeout bei restart"; exit 1 }
    eof
}