Skip to content

Commit

Permalink
typo in init script
Browse files Browse the repository at this point in the history
  • Loading branch information
thelamer committed Dec 9, 2019
1 parent e148aa9 commit 72e4fb6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions root/etc/cont-init.d/36-download-menus
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,33 @@ mkdir -p \
/config/menus/local

# download menus if not found
if [[ ! -f /menus/remote/menu.ipxe ]]; then
if [[ ! -f /config/menus/remote/menu.ipxe ]]; then
if [[ -z ${MENU_VERSION+x} ]]; then \
MENU_VERSION = $(curl -sL "https://api.github.com/repos/netbootxyz/netboot.xyz/releases/latest" | jq -r '.tag_name')
MENU_VERSION=$(curl -sL "https://api.github.com/repos/netbootxyz/netboot.xyz/releases/latest" | jq -r '.tag_name')
fi
echo "[netbootxyz-init] Downloading Netboot.xyz at ${MENU_VERSION}"
# menu files
curl -o \
/tmp/menus.tar.gz -sL \
"https://github.com/netbootxyz/netboot.xyz/releases/download/${MENU_VERSION}/menus.tar.gz"
"https://github.com/netbootxyz/netboot.xyz/releases/download/${MENU_VERSION}/menus.tar.gz"
tar xf \
/tmp/menus.tar.gz -C \
/config/menus/remote
# boot files
curl -o \
/config/menus/remote/netboot.xyz-undionly.kpxe -sL \
"https://github.com/netbootxyz/netboot.xyz/releases/download/${MENU_VERSION}/netboot.xyz-undionly.kpxe"
"https://github.com/netbootxyz/netboot.xyz/releases/download/${MENU_VERSION}/netboot.xyz-undionly.kpxe"
curl -o \
/config/menus/remote/netboot.xyz.efi -sL \
"https://github.com/netbootxyz/netboot.xyz/releases/download/${MENU_VERSION}/netboot.xyz.efi"
"https://github.com/netbootxyz/netboot.xyz/releases/download/${MENU_VERSION}/netboot.xyz.efi"
curl -o \
/config/menus/remote/netboot.xyz.kpxe -sL \
"https://github.com/netbootxyz/netboot.xyz/releases/download/${MENU_VERSION}/netboot.xyz.kpxe"
# layer and cleanup
echo -n ${MENU_VERSION} > /config/menuversion.txt
"https://github.com/netbootxyz/netboot.xyz/releases/download/${MENU_VERSION}/netboot.xyz.kpxe"
# layer and cleanup
echo -n ${MENU_VERSION} > /config/menuversion.txt
cp /config/menus/remote/* /config/menus
rm -f /tmp/menus.tar.gz
fi

# Ownership
chown -R abc:abc /config
chown -R abc:abc /config

0 comments on commit 72e4fb6

Please sign in to comment.