-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FINAL supported build 1.3.2 ; add RocketChat/Rocket.Chat#15120 and Ro…
- Loading branch information
Showing
1 changed file
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|