Skip to content

Commit

Permalink
FINAL supported build 1.3.2 ; add RocketChat/Rocket.Chat#15120 and Ro…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sing-Li committed Aug 24, 2019
1 parent 43f3a19 commit a9b1c06
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions snapdir/snap/hooks/post-refresh
Original file line number Diff line number Diff line change
@@ -1,16 +1,32 @@
#!/bin/bash

# Initialize the CADDY_URL to a default
snapctl set caddy=disable
caddy="$(snapctl get caddy)"
if [ -z "$caddy" ]; then
snapctl set caddy=disable
fi

# Initialize the PORT to a default
snapctl set port=3000
port="$(snapctl get port)"
if [ -z "$port" ]; then
snapctl set port=3000
fi

# Initialize the MONGO_URL to a default
snapctl set mongo-url=mongodb://localhost:27017/parties
mongourl="$(snapctl get mongo-url)"
if [ -z "$mongourl" ]; then
snapctl set mongo-url=mongodb://localhost:27017/parties
fi

# Initialize the MONGO_OPLOG_URL to a default
snapctl set mongo-oplog-url=mongodb://localhost:27017/local
mongooplogurl="$(snapctl get mongo-oplog-url)"
if [ -z "$mongooplogurl" ]; then
snapctl set mongo-oplog-url=mongodb://localhost:27017/local
fi

# Initialize the protocol to a default
snapctl set https=disable
https="$(snapctl get https)"
if [ -z "$https" ]; then
snapctl set https=disable
fi

0 comments on commit a9b1c06

Please sign in to comment.