diff --git a/incubator/linkding/0.0.5/ix_values.yaml b/incubator/linkding/0.0.5/ix_values.yaml
deleted file mode 100644
index 861692797e..0000000000
--- a/incubator/linkding/0.0.5/ix_values.yaml
+++ /dev/null
@@ -1,30 +0,0 @@
-image:
- repository: tccr.io/truecharts/linkding
- tag: v1.8.8@sha256:c5a15b48ef46e409d6d0fe0552280611bcbb148e5311f4ed0e9e12d2360e6578
- pullPolicy: IfNotPresent
-
-securityContext:
- readOnlyRootFilesystem: false
- runAsNonRoot: false
-
-podSecurityContext:
- runAsUser: 0
- runAsGroup: 0
-
-env:
- LD_SERVER_PORT: "{{ .Values.service.main.ports.main.port }}"
- # User Defined
- LD_REQUEST_TIMEOUT: 60
- LD_DISABLE_BACKGROUND_TASKS: false
- LD_DISABLE_URL_VALIDATION: false
-
-service:
- main:
- ports:
- main:
- port: 10210
-
-persistence:
- data:
- enabled: true
- mountPath: "/etc/linkding/data"
diff --git a/incubator/linkding/0.0.5/CHANGELOG.md b/incubator/linkding/0.0.6/CHANGELOG.md
similarity index 74%
rename from incubator/linkding/0.0.5/CHANGELOG.md
rename to incubator/linkding/0.0.6/CHANGELOG.md
index 61545cde0b..7b160b3eb3 100644
--- a/incubator/linkding/0.0.5/CHANGELOG.md
+++ b/incubator/linkding/0.0.6/CHANGELOG.md
@@ -1,6 +1,19 @@
# Changelog
+
+### [linkding-0.0.6](https://github.com/truecharts/apps/compare/linkding-0.0.5...linkding-0.0.6) (2022-04-03)
+
+#### Chore
+
+* bump ([#2420](https://github.com/truecharts/apps/issues/2420))
+
+#### Fix
+
+* create initial user ([#2417](https://github.com/truecharts/apps/issues/2417))
+
+
+
### [linkding-0.0.5](https://github.com/truecharts/apps/compare/linkding-0.0.4...linkding-0.0.5) (2022-04-03)
diff --git a/incubator/linkding/0.0.5/CONFIG.md b/incubator/linkding/0.0.6/CONFIG.md
similarity index 100%
rename from incubator/linkding/0.0.5/CONFIG.md
rename to incubator/linkding/0.0.6/CONFIG.md
diff --git a/incubator/linkding/0.0.5/Chart.lock b/incubator/linkding/0.0.6/Chart.lock
similarity index 80%
rename from incubator/linkding/0.0.5/Chart.lock
rename to incubator/linkding/0.0.6/Chart.lock
index f148ce9af1..5704f91cfe 100644
--- a/incubator/linkding/0.0.5/Chart.lock
+++ b/incubator/linkding/0.0.6/Chart.lock
@@ -3,4 +3,4 @@ dependencies:
repository: https://library-charts.truecharts.org
version: 9.2.7
digest: sha256:927fec2499d55b3de8a7522d936aaf4f21f668370deb33239fb06f12051ff5b1
-generated: "2022-04-03T15:46:12.759671995Z"
+generated: "2022-04-03T19:51:38.950754447Z"
diff --git a/incubator/linkding/0.0.5/Chart.yaml b/incubator/linkding/0.0.6/Chart.yaml
similarity index 98%
rename from incubator/linkding/0.0.5/Chart.yaml
rename to incubator/linkding/0.0.6/Chart.yaml
index a8bf38f052..3a3a58879d 100644
--- a/incubator/linkding/0.0.5/Chart.yaml
+++ b/incubator/linkding/0.0.6/Chart.yaml
@@ -19,7 +19,7 @@ name: linkding
sources:
- https://github.com/sissbruecker/linkding
- https://hub.docker.com/r/sissbruecker/linkding
-version: 0.0.5
+version: 0.0.6
annotations:
truecharts.org/catagories: |
- bookmarks
diff --git a/incubator/linkding/0.0.5/README.md b/incubator/linkding/0.0.6/README.md
similarity index 100%
rename from incubator/linkding/0.0.5/README.md
rename to incubator/linkding/0.0.6/README.md
diff --git a/incubator/linkding/0.0.5/app-readme.md b/incubator/linkding/0.0.6/app-readme.md
similarity index 100%
rename from incubator/linkding/0.0.5/app-readme.md
rename to incubator/linkding/0.0.6/app-readme.md
diff --git a/incubator/linkding/0.0.5/charts/common-9.2.7.tgz b/incubator/linkding/0.0.6/charts/common-9.2.7.tgz
similarity index 100%
rename from incubator/linkding/0.0.5/charts/common-9.2.7.tgz
rename to incubator/linkding/0.0.6/charts/common-9.2.7.tgz
diff --git a/incubator/linkding/0.0.5/helm-values.md b/incubator/linkding/0.0.6/helm-values.md
similarity index 62%
rename from incubator/linkding/0.0.5/helm-values.md
rename to incubator/linkding/0.0.6/helm-values.md
index 7138e02686..415d9238f1 100644
--- a/incubator/linkding/0.0.5/helm-values.md
+++ b/incubator/linkding/0.0.6/helm-values.md
@@ -18,10 +18,16 @@ You will, however, be able to use all values referenced in the common chart here
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"tccr.io/truecharts/linkding"` | |
| image.tag | string | `"v1.8.8@sha256:c5a15b48ef46e409d6d0fe0552280611bcbb148e5311f4ed0e9e12d2360e6578"` | |
+| lifecycle.postStart.exec.command[0] | string | `"/bin/bash"` | |
+| lifecycle.postStart.exec.command[1] | string | `"-c"` | |
+| lifecycle.postStart.exec.command[2] | string | `"if [ -f /etc/linkding/data/.superuser_exists ]; then\n echo \"Superuser has been created before. Skipping...\";\nelse\n echo \"Creating superuser...\";\n export status=99;\n until [ $status -eq 0 ];\n do\n python manage.py createsuperuser --username=${DJANGO_SUPERUSER_USERNAME} --email=${DJANGO_SUPERUSER_EMAIL} --noinput;\n status=$?;\n sleep 3;\n done;\n echo \"This file is to ensure that init script won't try to create a superuser again and fail because it already exsits\" > /etc/linkding/data/.superuser_exists;\n echo \"Superuser Created!\";\nfi;\n"` | |
| persistence.data.enabled | bool | `true` | |
| persistence.data.mountPath | string | `"/etc/linkding/data"` | |
| podSecurityContext.runAsGroup | int | `0` | |
| podSecurityContext.runAsUser | int | `0` | |
+| secret.DJANGO_SUPERUSER_EMAIL | string | `"super@example.com"` | |
+| secret.DJANGO_SUPERUSER_PASSWORD | string | `"somesecret"` | |
+| secret.DJANGO_SUPERUSER_USERNAME | string | `"superuser"` | |
| securityContext.readOnlyRootFilesystem | bool | `false` | |
| securityContext.runAsNonRoot | bool | `false` | |
| service.main.ports.main.port | int | `10210` | |
diff --git a/incubator/linkding/0.0.6/ix_values.yaml b/incubator/linkding/0.0.6/ix_values.yaml
new file mode 100644
index 0000000000..c5dbcabb98
--- /dev/null
+++ b/incubator/linkding/0.0.6/ix_values.yaml
@@ -0,0 +1,57 @@
+image:
+ repository: tccr.io/truecharts/linkding
+ tag: v1.8.8@sha256:c5a15b48ef46e409d6d0fe0552280611bcbb148e5311f4ed0e9e12d2360e6578
+ pullPolicy: IfNotPresent
+
+securityContext:
+ readOnlyRootFilesystem: false
+ runAsNonRoot: false
+
+podSecurityContext:
+ runAsUser: 0
+ runAsGroup: 0
+
+secret:
+ DJANGO_SUPERUSER_USERNAME: "superuser"
+ DJANGO_SUPERUSER_EMAIL: "super@example.com"
+ DJANGO_SUPERUSER_PASSWORD: "somesecret"
+
+env:
+ LD_SERVER_PORT: "{{ .Values.service.main.ports.main.port }}"
+ # User Defined
+ LD_REQUEST_TIMEOUT: 60
+ LD_DISABLE_BACKGROUND_TASKS: false
+ LD_DISABLE_URL_VALIDATION: false
+
+service:
+ main:
+ ports:
+ main:
+ port: 10210
+
+persistence:
+ data:
+ enabled: true
+ mountPath: "/etc/linkding/data"
+
+lifecycle:
+ postStart:
+ exec:
+ command:
+ - "/bin/bash"
+ - "-c"
+ - |
+ if [ -f /etc/linkding/data/.superuser_exists ]; then
+ echo "Superuser has been created before. Skipping...";
+ else
+ echo "Creating superuser...";
+ export status=99;
+ until [ $status -eq 0 ];
+ do
+ python manage.py createsuperuser --username=${DJANGO_SUPERUSER_USERNAME} --email=${DJANGO_SUPERUSER_EMAIL} --noinput;
+ status=$?;
+ sleep 3;
+ done;
+ echo "This file is to ensure that init script won't try to create a superuser again and fail because it already exsits" > /etc/linkding/data/.superuser_exists;
+ echo "Superuser Created!";
+ fi;
diff --git a/incubator/linkding/0.0.5/questions.yaml b/incubator/linkding/0.0.6/questions.yaml
similarity index 99%
rename from incubator/linkding/0.0.5/questions.yaml
rename to incubator/linkding/0.0.6/questions.yaml
index b78515c1a2..9d3d40a1de 100644
--- a/incubator/linkding/0.0.5/questions.yaml
+++ b/incubator/linkding/0.0.6/questions.yaml
@@ -176,6 +176,32 @@ questions:
label: "Value"
schema:
type: string
+ - variable: secret
+ group: "Container Configuration"
+ label: "Image Secrets"
+ schema:
+ additional_attrs: true
+ type: dict
+ attrs:
+ - variable: DJANGO_SUPERUSER_USERNAME
+ label: "Superuser Username (Initial install only)"
+ schema:
+ type: string
+ default: ""
+ required: true
+ - variable: DJANGO_SUPERUSER_EMAIL
+ label: "Superuser Email (Initial install only)"
+ schema:
+ type: string
+ default: ""
+ required: true
+ - variable: DJANGO_SUPERUSER_PASSWORD
+ label: "Superuser Password (Initial install only)"
+ schema:
+ type: string
+ default: ""
+ private: true
+ required: true
- variable: env
group: "Container Configuration"
label: "Image Environment"
diff --git a/incubator/linkding/0.0.5/security.md b/incubator/linkding/0.0.6/security.md
similarity index 100%
rename from incubator/linkding/0.0.5/security.md
rename to incubator/linkding/0.0.6/security.md
diff --git a/incubator/linkding/0.0.5/templates/common.yaml b/incubator/linkding/0.0.6/templates/common.yaml
similarity index 100%
rename from incubator/linkding/0.0.5/templates/common.yaml
rename to incubator/linkding/0.0.6/templates/common.yaml
diff --git a/incubator/linkding/0.0.5/values.yaml b/incubator/linkding/0.0.6/values.yaml
similarity index 100%
rename from incubator/linkding/0.0.5/values.yaml
rename to incubator/linkding/0.0.6/values.yaml