16 lines
320 B
Bash
Executable File
16 lines
320 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
echo "clientid: ${BW_CLIENTID}"
|
|
echo "clientsecret: ${BW_CLIENTSECRET}"
|
|
|
|
bw config server ${BW_HOST}
|
|
|
|
export BW_SESSION=$(bw login --apikey --raw)
|
|
bw unlock --passwordenv BW_PASSWORD
|
|
bw unlock --check
|
|
|
|
echo 'Running `bw server` on port 8087'
|
|
bw serve --hostname 0.0.0.0 #--disable-origin-protection
|