-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
993a448
commit 73b3b34
Showing
8 changed files
with
122 additions
and
15 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
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
|
||
|
||
## Erlang Distribution Configuration | ||
|
||
## (required) unique nodename for erlang distribution | ||
export NODE_NAME=<%= release.name %>@127.0.0.1 | ||
|
||
## (required) secure secret key, at least 64 bytes in length | ||
export NODE_COOKIE= | ||
|
||
|
||
## IMAP Configuration | ||
|
||
## (required) IMAP username, IMAP user password | ||
export IMAP_USERNAME= | ||
export IMAP_PASSWORD= | ||
|
||
## (optional, defaults to localhost) IMAP server host | ||
#export IMAP_HOST= | ||
|
||
## (optional, defaults to 993) IMAP server port | ||
#export IMAP_PORT= |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
printf '\e[1;94m%-6s\e[m\n' "Done." |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/env bash | ||
|
||
export REPLACE_OS_VARS=true | ||
|
||
printf "==> checking environment variables\n" | ||
|
||
if [ -f "$RELEASE_ROOT_DIR/dioprc" ]; then | ||
printf "Sourcing dioprc...\n" | ||
source "$RELEASE_ROOT_DIR/dioprc" | ||
else | ||
printf "dioprc not found :(\n" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$NODE_NAME" ]; then | ||
printf '$NODE_NAME is not set... exiting.\n' | ||
exit 1 | ||
else | ||
printf "Node name -> ${NODE_NAME}\n" | ||
fi | ||
|
||
if [ -z "$NODE_COOKIE" ]; then | ||
printf '$NODE_COOKIE is not set... exiting.\n' | ||
exit 1 | ||
else | ||
printf "Node cookie is set\n" | ||
fi | ||
|
||
if [ -z "$IMAP_USERNAME" ]; then | ||
printf '$IMAP_USERNAME is not set... exiting.\n' | ||
exit 1 | ||
else | ||
printf "IMAP username is set\n" | ||
fi | ||
|
||
if [ -z "$IMAP_PASSWORD" ]; then | ||
printf '$IMAP_PASSWORD is not set... exiting.\n' | ||
exit 1 | ||
else | ||
printf "IMAP password is set\n" | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
printf '\e[0;94m%-6s\e[m\n' "Starting DIOP..." |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
use Mix.Config | ||
|
||
# Node | ||
node_name = System.get_env("NODE_NAME") | ||
node_cookie = System.get_env("NODE_COOKIE") | ||
|
||
#IMAP | ||
imap_username = System.get_env("IMAP_USERNAME") | ||
imap_password = System.get_env("IMAP_PASSWORD") | ||
imap_host = | ||
case System.get_env("IMAP_HOST") do | ||
nil -> "localhost" | ||
host -> host | ||
end | ||
|
||
imap_port = | ||
case System.get_env("IMAP_PORT") do | ||
nil -> 993 | ||
port -> port |> String.to_integer | ||
end | ||
|
||
|
||
config :diop_core, | ||
node_name: node_name, | ||
node_cookie: node_cookie | ||
|
||
config :eximap, | ||
account: imap_username, | ||
password: imap_password, | ||
use_ssl: true, | ||
incoming_mail_server: imap_host, | ||
incoming_port: imap_port | ||
|
||
|
||
config :diop_email, | ||
check_list: ["evncert.am", "pingvinashen.am"] |
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