Update iventoy-install.sh

create `data` and `iso` directories.
This commit is contained in:
tteckster 2024-05-18 13:36:05 -04:00 committed by GitHub
parent 1b842f22cf
commit 0cd751d75c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ msg_ok "Installed Dependencies"
RELEASE=$(curl -s https://api.github.com/repos/ventoy/pxe/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') RELEASE=$(curl -s https://api.github.com/repos/ventoy/pxe/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
msg_info "Installing iVentoy v${RELEASE}" msg_info "Installing iVentoy v${RELEASE}"
mkdir -p /opt/iventoy/ mkdir -p /opt/iventoy/{data,iso}
wget -q https://github.com/ventoy/PXE/releases/download/v${RELEASE}/iventoy-${RELEASE}-linux-free.tar.gz wget -q https://github.com/ventoy/PXE/releases/download/v${RELEASE}/iventoy-${RELEASE}-linux-free.tar.gz
tar -C /tmp -xzf iventoy*.tar.gz tar -C /tmp -xzf iventoy*.tar.gz
mv /tmp/iventoy*/* /opt/iventoy/ mv /tmp/iventoy*/* /opt/iventoy/
@ -55,4 +55,4 @@ customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get -y autoremove $STD apt-get -y autoremove
$STD apt-get -y autoclean $STD apt-get -y autoclean
msg_ok "Cleaned" msg_ok "Cleaned"