Skip to content

Commit 60d8496

Browse files
authored
fix chown (#16999)
1 parent ab1db45 commit 60d8496

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ct/authentik.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function update_script() {
8888
msg_info "Moving blueprints to presistent directory"
8989
cp -r /opt/authentik/blueprints /opt/authentik-data/
9090
rm -r /opt/authentik/blueprints
91-
chown -R authentik:authentik /opt/authentik-data
91+
chown -Rf authentik:authentik /opt/authentik-data
9292
yq -i ".blueprints_dir = \"/opt/authentik-data/blueprints\"" /etc/authentik/config.yml
9393
msg_ok "blueprints moved to presistent directory"
9494
msg_warn "The blueprints provided by authentik are always overwritten when updated! Only manually created custom blueprints remain unchanged between updates."
@@ -155,7 +155,7 @@ function update_script() {
155155

156156
cp -r /opt/authentik/blueprints /opt/authentik-data/
157157
rm -r /opt/authentik/blueprints
158-
chown -R authentik:authentik /opt/authentik-data
158+
chown -Rf authentik:authentik /opt/authentik-data
159159

160160
if [[ $MAJOR == 2026 && $MINOR -lt 8 ]]; then
161161
msg_info "Updating Worker and Server config (from $MAJOR.$MINOR)"
@@ -228,7 +228,7 @@ $STD pct exec "$CTID" -- bash -c "mkdir -p /opt/authentik-data/{certs,media,geoi
228228
cp /opt/authentik/tests/GeoLite2-City-Test.mmdb /opt/authentik-data/geoip/GeoLite2-City.mmdb; \
229229
cp -r /opt/authentik/blueprints /opt/authentik-data/; \
230230
rm -r /opt/authentik/blueprints; \
231-
chown -R authentik:authentik /opt/authentik-data"
231+
chown -Rf authentik:authentik /opt/authentik-data"
232232
msg_ok "Attached data storage volume"
233233

234234
msg_info "Starting Services"

0 commit comments

Comments
 (0)