1
0
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:
Kyle Spearrin 2017-08-19 15:27:57 -04:00
parent 401b3b95a0
commit 3ca8801af0
13 changed files with 34 additions and 20 deletions

3
.gitignore vendored
View File

@ -203,4 +203,5 @@ mail_dist/
*.refactorlog
*.scmp
src/Core/Properties/launchSettings.json
*.override.env
*.override.env
**/*.DS_Store

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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
View 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
View 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
View 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
View 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
View 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
View 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
View 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"