fix ownfoil

This commit is contained in:
CanbiZ (MickLesk)
2026-04-13 14:09:23 +02:00
parent b1e1bfab22
commit 8e605c0f29
2 changed files with 10 additions and 14 deletions

View File

@@ -1,26 +1,24 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
# Copyright (c) 2021-2026 community-scripts ORG # Copyright (c) 2021-2026 community-scripts ORG
# Author: pajjski # Author: pajjski
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
# Source: https://github.com/a1ex4/ownfoil # Source: https://github.com/a1ex4/ownfoil
APP="ownfoil" APP="ownfoil"
var_tags="${var_tags:-gaming}" var_tags="${var_tags:-gaming}"
var_cpu="${var_cpu:-1}" var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-1024}" var_ram="${var_ram:-1024}"
var_disk="${var_disk:-4}" var_disk="${var_disk:-4}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-13}" var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors catch_errors
function update_script() { function update_script() {
header_info header_info
check_container_storage check_container_storage
@@ -45,9 +43,9 @@ function update_script() {
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
cd /opt/ownfoil cd /opt/ownfoil
$STD source .venv/bin/activate $STD source .venv/bin/activate
$STD uv pip install -r requirements.txt $STD uv pip install -r requirements.txt
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Restoring Data" msg_info "Restoring Data"
cp -r /opt/ownfoil_data_backup /opt/ownfoil/app/config 2>/dev/null || true cp -r /opt/ownfoil_data_backup /opt/ownfoil/app/config 2>/dev/null || true
rm -rf /opt/ownfoil_data_backup rm -rf /opt/ownfoil_data_backup

View File

@@ -2,7 +2,7 @@
# Copyright (c) 2021-2026 community-scripts ORG # Copyright (c) 2021-2026 community-scripts ORG
# Author: pajjski # Author: pajjski
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/a1ex4/ownfoil # Source: https://github.com/a1ex4/ownfoil
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
@@ -14,19 +14,17 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt install -y \ $STD apt install -y git
git
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
setup_uv setup_uv
fetch_and_deploy_gh_release "ownfoil" "a1ex4/ownfoil" "tarball" "latest" "/opt/ownfoil" fetch_and_deploy_gh_release "ownfoil" "a1ex4/ownfoil" "tarball" "latest" "/opt/ownfoil"
msg_info "Setting up Ownfoil" msg_info "Setting up Ownfoil"
cd /opt/ownfoil cd /opt/ownfoil
$STD uv venv .venv $STD uv venv .venv
$STD source .venv/bin/activate $STD source .venv/bin/activate
$STD uv pip install -r requirements.txt $STD uv pip install -r requirements.txt
msg_ok "Setup ownfoil" msg_ok "Setup ownfoil"
msg_info "Creating Service" msg_info "Creating Service"