Skip to content

Create nic-offloading-fix.sh #310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/autolabeler-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"json": [
{
"fileStatus": "modified",
"includeGlobs": ["frontend/publuc/json/**"],
"includeGlobs": ["frontend/public/json/**"],
"excludeGlobs": []
}
],
Expand Down
26 changes: 13 additions & 13 deletions ct/bar-assistant.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ function update_script() {
RELEASE_SALTRIM=$(curl -s https://api.github.com/repos/karlomikus/vue-salt-rim/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')

if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE_BARASSISTANT}" != "$(cat /opt/${APP}_version.txt)" ]]; then
msg_info "Stopping Service"
msg_info "Stopping nginx"
systemctl stop nginx
msg_ok "Stopped Service"
msg_ok "Stopped nginx"

msg_info "Updating ${APP} to v${RELEASE_BARASSISTANT}"
cd /opt
Expand All @@ -59,9 +59,9 @@ function update_script() {
echo "${RELEASE_BARASSISTANT}" >/opt/${APP}_version.txt
msg_ok "Updated $APP to v${RELEASE_BARASSISTANT}"

msg_info "Starting Service"
msg_info "Starting nginx"
systemctl start nginx
msg_ok "Started Service"
msg_ok "Started nginx"

msg_info "Cleaning up"
rm -rf /opt/barassistant.zip
Expand All @@ -72,9 +72,9 @@ function update_script() {
fi

if [[ ! -f /opt/vue-salt-rim_version.txt ]] || [[ "${RELEASE_SALTRIM}" != "$(cat /opt/vue-salt-rim_version.txt)" ]]; then
msg_info "Stopping Service"
msg_info "Stopping nginx"
systemctl stop nginx
msg_ok "Stopped Service"
msg_ok "Stopped nginx"

msg_info "Updating Salt Rim to v${RELEASE_SALTRIM}"
cd /opt
Expand All @@ -89,9 +89,9 @@ function update_script() {
echo "${RELEASE_SALTRIM}" >/opt/vue-salt-rim_version.txt
msg_ok "Updated $APP to v${RELEASE_SALTRIM}"

msg_info "Starting Service"
msg_info "Starting nginx"
systemctl start nginx
msg_ok "Started Service"
msg_ok "Started nginx"

msg_info "Cleaning up"
rm -rf /opt/saltrim.zip
Expand All @@ -102,21 +102,21 @@ function update_script() {
fi

if [[ ! -f /opt/meilisearch_version.txt ]] || [[ "${RELEASE_MEILISEARCH}" != "$(cat /opt/meilisearch_version.txt)" ]]; then
msg_info "Stopping Service"
msg_info "Stopping Meilisearch"
systemctl stop meilisearch
msg_ok "Stopped Service"
msg_ok "Stopped Meilisearch"

msg_info "Updating Meilisearch to ${RELEASE_MEILISEARCH}"
cd /opt
RELEASE=$(curl -s https://api.github.com/repos/meilisearch/meilisearch/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
curl -fsSL https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb -o meilisearch.deb
$STD dpkg -i meilisearch.deb
echo "${RELEASE_MEILISEARCH}" >/opt/meilisearch_version.txt
msg_ok "Updated Meilisearch to v${RELEASE_MEILISEARCH}"
msg_ok "Updated Meilisearch to ${RELEASE_MEILISEARCH}"

msg_info "Starting Service"
msg_info "Starting Meilisearch"
systemctl start meilisearch
msg_ok "Started Service"
msg_ok "Started Meilisearch"

msg_info "Cleaning up"
rm -rf "/opt/meilisearch.deb"
Expand Down
40 changes: 40 additions & 0 deletions frontend/public/json/nic-offloading-fix.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "NIC Offloading Fix",
"slug": "nic-offloading-fix",
"categories": [
1
],
"date_created": "2025-05-25",
"type": "pve",
"updateable": false,
"privileged": false,
"interface_port": null,
"documentation": null,
"config_path": "",
"website": null,
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/proxmox.webp",
"description": "This script automates the process of disabling network interface card (NIC) offloading features specifically for Intel e1000e network interfaces on Linux systems.",
"install_methods": [
{
"type": "default",
"script": "tools/pve/nic-offloading-fix.sh",
"resources": {
"cpu": null,
"ram": null,
"hdd": null,
"os": null,
"version": null
}
}
],
"default_credentials": {
"username": null,
"password": null
},
"notes": [
{
"text": "Execute within the Proxmox shell",
"type": "info"
}
]
}
9 changes: 3 additions & 6 deletions install/bar-assistant-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ msg_info "configured PHP"

msg_info "Installing MeiliSearch"
cd /opt
# RELEASE_MEILISEARCH=$(curl -s https://api.github.com/repos/meilisearch/meilisearch/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
RELEASE_MEILISEARCH=v1.13.3
RELEASE_MEILISEARCH=$(curl -s https://api.github.com/repos/meilisearch/meilisearch/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
curl -fsSL https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb -o meilisearch.deb
$STD dpkg -i meilisearch.deb
curl -fsSL https://raw.githubusercontent.com/meilisearch/meilisearch/latest/config.toml -o /etc/meilisearch.toml
Expand Down Expand Up @@ -69,8 +68,7 @@ systemctl enable -q --now meilisearch
msg_ok "Created Service MeiliSearch"

msg_info "Installing Bar Assistant"
# RELEASE_BARASSISTANT=$(curl -s https://api.github.com/repos/karlomikus/bar-assistant/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
RELEASE_BARASSISTANT=5.4.1
RELEASE_BARASSISTANT=$(curl -s https://api.github.com/repos/karlomikus/bar-assistant/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
cd /opt
curl -fsSL "https://github.com/karlomikus/bar-assistant/archive/refs/tags/v${RELEASE_BARASSISTANT}.zip" -o barassistant.zip
unzip -q barassistant.zip
Expand Down Expand Up @@ -102,8 +100,7 @@ echo "${RELEASE_BARASSISTANT}" >/opt/${APPLICATION}_version.txt
msg_ok "Installed Bar Assistant"

msg_info "Installing Salt Rim"
# RELEASE_SALTRIM=$(curl -s https://api.github.com/repos/karlomikus/vue-salt-rim/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
RELEASE_SALTRIM=4.2.0
RELEASE_SALTRIM=$(curl -s https://api.github.com/repos/karlomikus/vue-salt-rim/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
cd /opt
curl -fsSL "https://github.com/karlomikus/vue-salt-rim/archive/refs/tags/v${RELEASE_SALTRIM}.zip" -o saltrim.zip
unzip -q saltrim.zip
Expand Down
Loading