Skip to content

Commit cfb1cfb

Browse files
committed
add install basescript for next version
1 parent ca18fd2 commit cfb1cfb

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

bin/install.sh

100644100755
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
#-----------------------------------------------------------------------
4+
#
5+
# Install script - configure the requirements for this project
6+
#
7+
# https://github.com/evertramos/nginx-proxy-automation
8+
#
9+
# Script developed by
10+
# Evert Ramos <evert.ramos@gmail.com>
11+
#
12+
# Copyright Evert Ramos
13+
#
14+
#-----------------------------------------------------------------------
15+
16+
# Bash settings (do not mess with it)
17+
shopt -s nullglob globstar
18+
19+
# Get the script name and its file real path
20+
SCRIPT_PATH="$(dirname "$(readlink -f "$0")")"
21+
SCRIPT_NAME="${0##*/}"
22+
23+
# basescript (remove and install)
24+
BASESCRIPT_VERSION=v0.6.2
25+
BASESCRIPT_BASE_PATH=${SCRIPT_PATH}/../src/scripts
26+
mkdir -p ${BASESCRIPT_BASE_PATH}
27+
cd ${BASESCRIPT_BASE_PATH}
28+
rm -rf "basescript"
29+
git clone https://github.com/evertramos/basescript.git &> /dev/null
30+
cd basescript
31+
git checkout ${BASESCRIPT_VERSION} &> /dev/null
32+
cd ${SCRIPT_PATH}
33+
source "${BASESCRIPT_BASE_PATH}/basescript/bootstrap.sh"
34+
BASESCRIPT_LOG_BASE_PATH=${BASESCRIPT_BASE_PATH}/logs
35+
mkdir -p ${BASESCRIPT_LOG_BASE_PATH}
36+
# Source localscripts
37+
#source ${BASESCRIPT_BASE_PATH}"/localscripts/bootstrap.sh"
38+
39+
log "testing..."

0 commit comments

Comments
 (0)