Fix circleci

This commit is contained in:
Michiel Hazelhof 2023-01-04 01:23:30 +01:00
parent 65bda70c34
commit 521be7b825
No known key found for this signature in database
GPG Key ID: EECB9B96355B5EBF
3 changed files with 21 additions and 9 deletions

View File

@ -12,4 +12,4 @@ jobs:
command: ./generateKeys.sh
- run:
name: Build script
command: ./build.sh
command: ./build.sh y

View File

@ -43,10 +43,17 @@ foreach ($instance in $oldinstances) {
}
# update bitwarden itself
if ($args[0] -eq 'y')
{
docker pull bitwarden/self-host:beta
}
else
{
$confirmation = Read-Host "Update (or get) bitwarden source container"
if ($confirmation -eq 'y') {
docker pull bitwarden/self-host:beta
}
}
# stop and remove previous existing patch(ed) container
docker stop bitwarden-patch

View File

@ -46,12 +46,17 @@ for INSTANCE in ${OLDINSTANCES[@]}; do
done
# update bitwarden itself
if [ "$1" = "y" ]; then
docker pull bitwarden/self-host:beta
else
read -p "Update (or get) bitwarden source container: " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
docker pull bitwarden/self-host:beta
fi
fi
# stop and remove previous existing patch(ed) container
docker stop bitwarden-patch