Skip to content

Commit

Permalink
Update fallback to use unix socket lxd
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Dec 30, 2023
1 parent b0a5030 commit 2173894
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pakman/bootstrap/templates.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ defmodule Pakman.Bootstrap.Templates do
EEx.function_from_file(
:def,
:environment,
Path.join(@prefix, "environment.eex"),
Path.join(@prefix, "environment.eex.bash"),
[:name]
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function fetch_from_instellar_or_fallback() {
else
echo "----- Fetching from backup -----"

variables="$(cat /root/.<%= name %>/variables.json | jq '.data.attributes.variables')"
variables="$(curl -s --unix-socket /dev/lxd/sock x/1.0/config/user.INSTELLAR_INSTALLATION_DATA | base64 -d | jq '.data.attributes.variables')"
fi
}

Expand Down

0 comments on commit 2173894

Please sign in to comment.