mirror of
https://github.com/bitwarden/server.git
synced 2024-11-21 12:05:42 +01:00
script fixes for mac
This commit is contained in:
parent
401b3b95a0
commit
3ca8801af0
1
.gitignore
vendored
1
.gitignore
vendored
@ -204,3 +204,4 @@ mail_dist/
|
||||
*.scmp
|
||||
src/Core/Properties/launchSettings.json
|
||||
*.override.env
|
||||
**/*.DS_Store
|
||||
|
20
build.sh
20
build.sh
@ -1,15 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$(dirname $(readlink -f $0))"
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
echo -e "\nBuilding bitwarden"
|
||||
echo -e "=================="
|
||||
echo ""
|
||||
echo "Building bitwarden"
|
||||
echo "=================="
|
||||
|
||||
chmod u+x $DIR/src/Api/build.sh
|
||||
$DIR/src/Api/build.sh
|
||||
|
||||
chmod u+x $DIR/src/Identity/build.sh
|
||||
$DIR/src/Identity/build.sh
|
||||
|
||||
chmod u+x $DIR/util/Server/build.sh
|
||||
$DIR/util/Server/build.sh
|
||||
|
||||
chmod u+x $DIR/util/Nginx/build.sh
|
||||
$DIR/util/Nginx/build.sh
|
||||
|
||||
chmod u+x $DIR/util/Attachments/build.sh
|
||||
$DIR/util/Attachments/build.sh
|
||||
|
||||
chmod u+x $DIR/util/MsSql/build.sh
|
||||
$DIR/util/MsSql/build.sh
|
||||
|
||||
chmod u+x $DIR/util/Setup/build.sh
|
||||
$DIR/util/Setup/build.sh
|
||||
|
@ -22,13 +22,11 @@ EOF
|
||||
docker --version
|
||||
echo ""
|
||||
|
||||
OUTPUT_DIR=/etc/bitwarden
|
||||
OUTPUT_DIR=~/bitwarden
|
||||
mkdir -p $OUTPUT_DIR
|
||||
|
||||
echo -e "(!) Enter the domain name for your bitwarden instance (ex. bitwarden.company.com): "
|
||||
read DOMAIN
|
||||
echo -e "\n(!) Do you want to use Let's Encrypt to generate a free SSL certificate? (y/n): "
|
||||
read LETS_ENCRYPT
|
||||
read -p "(!) Enter the domain name for your bitwarden instance (ex. bitwarden.company.com): " DOMAIN
|
||||
read -p "(!) Do you want to use Let's Encrypt to generate a free SSL certificate? (y/n): " LETS_ENCRYPT
|
||||
|
||||
if [ $LETS_ENCRYPT == 'y' ]
|
||||
then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$(dirname $(readlink -f $0))"
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
DOCKER_DIR=$DIR/../docker
|
||||
|
||||
docker --version
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$(dirname $(readlink -f $0))"
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
DOCKER_DIR=$DIR/../docker
|
||||
|
||||
docker --version
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
OUTPUT_DIR=/etc/bitwarden
|
||||
OUTPUT_DIR=~/bitwarden
|
||||
|
||||
docker run -it --rm --name setup --network container:mssql -v $OUTPUT_DIR:/bitwarden bitwarden/setup \
|
||||
dotnet Setup.dll -update 1 -db 1
|
||||
|
5
src/Api/build.sh
Normal file → Executable file
5
src/Api/build.sh
Normal file → Executable file
@ -1,13 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$(dirname $(readlink -f $0))"
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
echo -e "\n# Building API"
|
||||
|
||||
echo -e "\nBuilding app"
|
||||
echo -e ".NET Core version $(dotnet --version)"
|
||||
dotnet publish $DIR/Api.csproj -f netcoreapp2.0 -c "Release" -o $DIR/obj/Docker/publish
|
||||
dotnet publish $DIR/Api.csproj -f netcoreapp2.0 -c "Release" -o $DIR/obj/Docker/publish/Api
|
||||
dotnet publish $DIR/../Jobs/Jobs.csproj -f netcoreapp2.0 -c "Release" -o $DIR/obj/Docker/publish/Jobs
|
||||
|
||||
echo -e "\nBuilding docker image"
|
||||
docker --version
|
||||
|
2
src/Identity/build.sh
Normal file → Executable file
2
src/Identity/build.sh
Normal file → Executable file
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$(dirname $(readlink -f $0))"
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
echo -e "\n# Building Identity"
|
||||
|
||||
|
2
util/Attachments/build.sh
Normal file → Executable file
2
util/Attachments/build.sh
Normal file → Executable file
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$(dirname $(readlink -f $0))"
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
echo -e "\n# Building Attachments"
|
||||
|
||||
|
2
util/MsSql/build.sh
Normal file → Executable file
2
util/MsSql/build.sh
Normal file → Executable file
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$(dirname $(readlink -f $0))"
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
echo -e "\n# Building MsSql"
|
||||
|
||||
|
2
util/Nginx/build.sh
Normal file → Executable file
2
util/Nginx/build.sh
Normal file → Executable file
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$(dirname $(readlink -f $0))"
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
echo -e "\n# Building nginx"
|
||||
|
||||
|
2
util/Server/build.sh
Normal file → Executable file
2
util/Server/build.sh
Normal file → Executable file
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$(dirname $(readlink -f $0))"
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
echo -e "\n# Building Server"
|
||||
|
||||
|
2
util/Setup/build.sh
Normal file → Executable file
2
util/Setup/build.sh
Normal file → Executable file
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$(dirname $(readlink -f $0))"
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
echo -e "\n# Building Setup"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user