jakeswenson / BitBetter

Modify bit warden to provide my own licensing for self hosting
500 stars 112 forks source link

Patching run.sh to avoid pulling errors does not seem to work anymore #128

Closed amenk closed 2 years ago

amenk commented 2 years ago

This line does not seem to work anymore:

https://github.com/jakeswenson/BitBetter/blob/d2377d0f84d96320d66f1227e20137f1b35d2828/update-bitwarden.sh#L74

run.sh looks like this now:

function dockerComposePull() {
    dockerComposeFiles
    $dccmd pull
}
lstefan1520 commented 2 years ago

Can verify. This does not work anymore.

It appears bitwarden has changed the run script. BitBetter needs to be updated: image

sed would be for $dccmd pull

h44z commented 2 years ago

can someone test if the following works:

awk '1;/function downloadRunFile/{c=6}c&&!--c{print "sed -i '\''s/dccmd pull/dccmd pull --ignore-pull-failures || true/g'\'' $SCRIPTS_DIR/run.sh"}' $BITWARDEN_BASE/bitwarden.sh > tmp_bw.sh && mv tmp_bw.sh $BITWARDEN_BASE/bitwarden.sh