mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-22 20:11:28 +00:00
fix: Defaults not being set
This commit is contained in:
parent
512ff0a218
commit
fec11f8a7a
|
@ -7,15 +7,15 @@ set -e -o pipefail
|
||||||
makeConf() {
|
makeConf() {
|
||||||
# Skip everything if main config already present
|
# Skip everything if main config already present
|
||||||
[[ -e /etc/nixos/configuration.nix ]] && return 0
|
[[ -e /etc/nixos/configuration.nix ]] && return 0
|
||||||
if [[ $PASSWORD == null ]]; then
|
if [[ -z $PASSWORD ]]; then
|
||||||
export PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode)
|
export PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $DNS_PROVIDER_TYPE == null ]]; then
|
if [[ -z $DNS_PROVIDER_TYPE ]]; then
|
||||||
export DNS_PROVIDER_TYPE='CLOUDFLARE'
|
export DNS_PROVIDER_TYPE='CLOUDFLARE'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $STAGING_ACME == null ]]; then
|
if [[ -z $STAGING_ACME ]]; then
|
||||||
export STAGING_ACME='false'
|
export STAGING_ACME='false'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue