-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsdirs.sh
54 lines (43 loc) · 1.36 KB
/
jsdirs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#this is the main bash file which has all configuration arguments, we want to work env arguments only
set -ex
if [ "$(uname)" == "Darwin" ]; then
export LANG=C; export LC_ALL=C
export HOMEDIR=~
export TMPDIR=$TMPDIR
elif grep -q Microsoft /proc/version; then
# Windows subsystem 4 linux
WINDOWSUSERNAME=`ls -ail /mnt/c/Users/ | grep drwxrwxrwx | grep -v Public | grep -v Default | grep -v '\.\.'`
WINDOWSUSERNAME=${WINDOWSUSERNAME##* }
export HOMEDIR=/mnt/c/Users/${WINDOWSUSERNAME}
else
# Native Linux or MacOSX
export HOMEDIR=~
export TMPDIR=$TMPDIR
fi
#can overrule if you want
#export TMPDIR=/tmp
#export HOMEDIR=~
export SSHKEYNAME="SOMETHINGNOTTOUSE"
export DATADIR=$HOMEDIR/data
export CODEDIR=$HOMEDIR/code
export CFGDIR=$HOMEDIR/cfg
#is the base where jumpscale sandbox will be installed
export JSBASE=""
export JSGIT="https://github.com/Jumpscale/jumpscale_core9.git"
export JSBRANCH="master"
export AYSGIT="https://github.com/Jumpscale/ays_jumpscale"
export AYSBRANCH="master"
#USED for escalation
export EMAIL=""
export FULLNAME=""
#OUTGOING email server
##e.g. use www.endpulse.com (https://login.sendpulse.com/smtp/index/settings/)
export SMTP_SERVER="smtp-pulse.com"
export SMTP_SSL= 1
export SMTP_PORT= 465
export SMTP_LOGIN=""
export SMTP_PASSWD=""
ENDPULSE_KEY="
-----BEGIN PUBLIC KEY-----
...
-----END PUBLIC KEY-----"