Update 'nixos-infect'
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

password-decoding
Illia Chub 2022-02-15 11:00:30 +02:00
parent 8adcf27d18
commit b76fdd3005
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ makeConf() {
# NB <<"EOF" quotes / $ ` in heredocs, <<EOF does not
if [[ $PASSWORD == null ]]; then
export PASSWORD=$(echo $ENCODED_PASSWORD | base64 --decode)
export PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode | jq -Rs .)
mkdir -p /etc/nixos
@ -342,7 +342,7 @@ infect() {
[ "$PROVIDER" = "digitalocean" ] && doNetConf=y # digitalocean requires detailed network config to be generated
apt update
apt install git tar wget curl
apt install git tar wget curl jq
checkEnv
prepareEnv
makeSwap # smallest (512MB) droplet needs extra memory!