mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-26 05:21:26 +00:00
Fix if condition
This commit is contained in:
parent
3a224f2111
commit
0f779b5a1a
|
@ -9,6 +9,7 @@ makeConf() {
|
||||||
[[ -e /etc/nixos/configuration.nix ]] && return 0
|
[[ -e /etc/nixos/configuration.nix ]] && return 0
|
||||||
if [[ $PASSWORD == null ]]; then
|
if [[ $PASSWORD == null ]]; then
|
||||||
export PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode)
|
export PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode)
|
||||||
|
fi
|
||||||
|
|
||||||
export ESCAPED_PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode | jq -Rs .)
|
export ESCAPED_PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode | jq -Rs .)
|
||||||
export HASHED_PASSWORD=$( mkpasswd -m sha-512 "$PASSWORD" )
|
export HASHED_PASSWORD=$( mkpasswd -m sha-512 "$PASSWORD" )
|
||||||
|
|
Loading…
Reference in a new issue