I have been trying to get the cron job to work under the user that will allow updating to the Bitwarden instance under a standard docker build.
I have referred tot his document → Update your Instance | Bitwarden Help Center.
I have even tried testing it by outputting the command to a text file, e.g.,
#!/bin/bash
cd /opt/bitwarden/
./date >> /opt/bitwarden/updateself.log
./opt/bitwarden/bitwarden.sh updateself >> /opt/bitwarden/updateself.log
./date >> /top/bitwarden/update.log
./opt/bitwarden/bitwarden.sh update >> /opt/bitwarden/update.log
-rw-rw-r-- 1 bitwarden bitwarden 0 Oct 29 02:00 update.log
-rw-rw-r-- 1 bitwarden bitwarden 0 Oct 29 02:00 updateself.log
(under the user that can run the ‘update & updateself’ commands)
crontab -e
0 2 * * 0 /opt/bitwarden/updatebw.sh
But this does not do anything I have now been trying to find out how to run the command under another user, but am unable find anything useful.
Can anyone help with this?
Has anyone completed this step, to keep the Bitwarden instance update to date without being physically present?
I run Ubuntu, and have installed Docker standard install using the directions provided by Bitwarden.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
any help is appreciated. thansk you in advance.