Commit b9a988f33a2927860f742a967195778d9b22cc23
1 parent
7193dae1
Fix for correct install if env var changed
Showing
1 changed file
with
5 additions
and
6 deletions
... | ... | @@ -18,6 +18,11 @@ |
18 | 18 | |
19 | 19 | dpkg -i /thingsboard.deb |
20 | 20 | |
21 | +# Copying env variables into conf files | |
22 | +printenv | awk -F "=" '{print "export " $1 "='\''" $2 "'\''"}' >> /usr/share/thingsboard/conf/thingsboard.conf | |
23 | + | |
24 | +cat /usr/share/thingsboard/conf/thingsboard.conf | |
25 | + | |
21 | 26 | if [ "$DATABASE_TYPE" == "cassandra" ]; then |
22 | 27 | until nmap $CASSANDRA_HOST -p $CASSANDRA_PORT | grep "$CASSANDRA_PORT/tcp open\|filtered" |
23 | 28 | do |
... | ... | @@ -46,12 +51,6 @@ if [ "$ADD_SCHEMA_AND_SYSTEM_DATA" == "true" ]; then |
46 | 51 | fi |
47 | 52 | fi |
48 | 53 | |
49 | - | |
50 | -# Copying env variables into conf files | |
51 | -printenv | awk -F "=" '{print "export " $1 "='\''" $2 "'\''"}' >> /usr/share/thingsboard/conf/thingsboard.conf | |
52 | - | |
53 | -cat /usr/share/thingsboard/conf/thingsboard.conf | |
54 | - | |
55 | 54 | echo "Starting 'Thingsboard' service..." |
56 | 55 | service thingsboard start |
57 | 56 | ... | ... |