diff --git a/ct/dashy.sh b/ct/dashy.sh index 47a17a48..8a00bd99 100644 --- a/ct/dashy.sh +++ b/ct/dashy.sh @@ -8,7 +8,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV APP="Dashy" var_tags="${var_tags:-dashboard}" var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-4096}" +var_ram="${var_ram:-2048}" var_disk="${var_disk:-6}" var_os="${var_os:-debian}" var_version="${var_version:-13}" @@ -40,12 +40,11 @@ function update_script() { fi msg_ok "Backed up conf.yml" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "dashy" "Lissy93/dashy" "tarball" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "dashy" "Lissy93/dashy" "prebuild" "latest" "/opt/dashy" "dashy-*.tar.gz" msg_info "Updating Dashy" cd /opt/dashy - npm install - npm run build + $STD yarn install --ignore-engines --network-timeout 300000 msg_ok "Updated Dashy" msg_info "Restoring conf.yml" diff --git a/docs/contribution/setup-fork.sh b/docs/contribution/setup-fork.sh index f068aeef..cfd01d32 100644 --- a/docs/contribution/setup-fork.sh +++ b/docs/contribution/setup-fork.sh @@ -124,6 +124,11 @@ update_links() { # Count occurrences of the old repo URL local count=$(grep -c "community-scripts/ProxmoxVED" "$file" 2>/dev/null || echo 0) + # Set to 0 if count is non numeric + if ! [[ "$count" =~ ^[0-9]+$ ]]; then + count=0 + fi + if [[ $count -gt 0 ]]; then # Replace all variations of the URL sed -i "s|github.com/$old_repo/$old_name|github.com/$new_owner/$new_repo|g" "$file" @@ -140,6 +145,11 @@ update_links() { if [[ -f "$file" ]]; then local count=$(grep -c "community-scripts/ProxmoxVED" "$file" 2>/dev/null || echo 0) + # Set to 0 if count is non numeric + if ! [[ "$count" =~ ^[0-9]+$ ]]; then + count=0 + fi + if [[ $count -gt 0 ]]; then sed -i "s|github.com/$old_repo/$old_name|github.com/$new_owner/$new_repo|g" "$file" sed -i "s|raw.githubusercontent.com/$old_repo/$old_name|raw.githubusercontent.com/$new_owner/$new_repo|g" "$file" diff --git a/install/dashy-install.sh b/install/dashy-install.sh index b9dc3545..8fcd64df 100644 --- a/install/dashy-install.sh +++ b/install/dashy-install.sh @@ -14,11 +14,11 @@ network_check update_os NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs -fetch_and_deploy_gh_release "dashy" "CrazyWolf13/dashy" "prebuild" "latest" "/opt/dashy" "dashy-*.tar.gz" +fetch_and_deploy_gh_release "dashy" "Lissy93/dashy" "prebuild" "latest" "/opt/dashy" "dashy-*.tar.gz" msg_info "Installing Dashy" cd /opt/dashy -$STD yarn install --production --ignore-engines --network-timeout 300000 +$STD yarn install --ignore-engines --network-timeout 300000 msg_ok "Installed Dashy" msg_info "Creating Service" @@ -29,6 +29,7 @@ Description=dashy [Service] Type=simple WorkingDirectory=/opt/dashy +Environment=NODE_OPTIONS=--openssl-legacy-provider ExecStart=/usr/bin/node server.js [Install] WantedBy=multi-user.target