瀏覽代碼

Publish new changes in catalog

sonicaj 11 月之前
父節點
當前提交
2a9b485027

+ 0 - 0
community/palworld/1.0.4/Chart.lock → community/palworld/1.0.5/Chart.lock


+ 1 - 1
community/palworld/1.0.4/Chart.yaml → community/palworld/1.0.5/Chart.yaml

@@ -3,7 +3,7 @@ description: Palworld is a multiplayer, open-world survival crafting game where
 annotations:
   title: Palworld
 type: application
-version: 1.0.4
+version: 1.0.5
 apiVersion: v2
 appVersion: palworld
 kubeVersion: '>=1.16.0-0'

+ 0 - 0
community/palworld/1.0.4/README.md → community/palworld/1.0.5/README.md


+ 0 - 0
community/palworld/1.0.4/app-readme.md → community/palworld/1.0.5/app-readme.md


+ 0 - 0
community/palworld/1.0.4/charts/common-1.2.9.tgz → community/palworld/1.0.5/charts/common-1.2.9.tgz


+ 0 - 0
community/palworld/1.0.4/ci/basic-values.yaml → community/palworld/1.0.5/ci/basic-values.yaml


+ 1 - 0
community/palworld/1.0.4/ix_values.yaml → community/palworld/1.0.5/ix_values.yaml

@@ -14,6 +14,7 @@ palworldConfig:
     name: TrueNAS Palworld Server
     description: Palworld Server running on TrueNAS
     password: ''
+  allowPlatform: Steam
   backup:
     enabled: false
     interval: 60

+ 0 - 0
community/palworld/1.0.4/metadata.yaml → community/palworld/1.0.5/metadata.yaml


+ 11 - 0
community/palworld/1.0.4/questions.yaml → community/palworld/1.0.5/questions.yaml

@@ -53,6 +53,17 @@ questions:
                   type: string
                   private: true
                   default: ""
+        - variable: allowPlatform
+          label: Platform
+          description: Specify which platforms are allowed to connect
+          schema:
+            type: string
+            required: true
+            enum:
+              - value: "Steam"
+                description: Steam platform
+              - value: "Xbox"
+                description: Xbox platform
         - variable: iniKeys
           label: Configure INI Keys
           description: |

+ 0 - 0
community/palworld/1.0.4/templates/NOTES.txt → community/palworld/1.0.5/templates/NOTES.txt


+ 11 - 1
community/palworld/1.0.4/templates/_palworld.tpl → community/palworld/1.0.5/templates/_palworld.tpl

@@ -110,7 +110,16 @@ workload:
                 fi
 
                 echo "Setting ${key}..."
-                sed -i "s|\(${key}=\)[^,]*|\1${escaped_value}|g" "${cfgFile}"
+
+                # Check if the key already exists
+                if grep -q "^OptionSettings=\(.*${key}=.*\)$" "${cfgFile}"; then
+                  # Key exists, update its value using the original logic
+                  sed -i "s|\(${key}=\)[^,]*|\1${escaped_value}|g" "${cfgFile}"
+                else
+                  # Key doesn't exist, append it right after "OptionSettings=("
+                  sed -i "s|^\(OptionSettings=(\)|\1${key}=${escaped_value}, |" "${cfgFile}"
+                fi
+
                 if [ "$print" = true ]; then
                   echo "Set to $(grep -Po "(?<=${key}=)[^,]*" "${cfgFile}")"
                 fi
@@ -123,6 +132,7 @@ workload:
               set_ini_value "ServerDescription" {{ .Values.palworldConfig.server.description | quote }} true
               set_ini_value "ServerPassword" {{ .Values.palworldConfig.server.password | squote }} true false
               set_ini_value "AdminPassword" {{ .Values.palworldConfig.adminPassword | squote }} true false
+              set_ini_value "AllowConnectPlatform" {{ .Values.palworldConfig.allowPlatform }} false
 
               {{- range $item := .Values.palworldConfig.iniKeys }}
                 {{- $k := $item.key -}}

+ 1 - 1
community/palworld/1.0.4/templates/_params.tpl → community/palworld/1.0.5/templates/_params.tpl

@@ -18,7 +18,7 @@
 
   {{- $reservedKeys := list
     "RCONEnabled" "RCONPort" "PublicPort" "ServerName"
-    "ServerDescription" "ServerPassword" "AdminPassword"
+    "ServerDescription" "ServerPassword" "AdminPassword" "AllowConnectPlatform"
   -}}
 
   {{- range $item := .Values.palworldConfig.iniKeys }}

+ 0 - 0
community/palworld/1.0.4/templates/_persistence.tpl → community/palworld/1.0.5/templates/_persistence.tpl


+ 0 - 0
community/palworld/1.0.4/templates/_service.tpl → community/palworld/1.0.5/templates/_service.tpl


+ 0 - 0
community/palworld/1.0.4/templates/common.yaml → community/palworld/1.0.5/templates/common.yaml


+ 0 - 0
community/palworld/1.0.4/upgrade_strategy_disabled → community/palworld/1.0.5/upgrade_strategy_disabled