mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
be certain that home is created
This commit is contained in:
parent
615bd6f3d4
commit
433671bea5
@ -95,6 +95,18 @@ else
|
||||
useradd -s /bin/bash -d "$BITWARDEN_HOME/" -m -G docker "$BITWARDEN_USER"
|
||||
fi
|
||||
|
||||
# Wait for home to be created
|
||||
while :
|
||||
do
|
||||
if ! ls "$BITWARDEN_HOME" >/dev/null 2>&1
|
||||
then
|
||||
print_text_in_color "$ICyan" "Waiting for $BITWARDEN_HOME to be created"
|
||||
sleep 1
|
||||
else
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# Create the service
|
||||
print_text_in_color "$ICyan" "Creating the Bitwarden service..."
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user