Skip to content

Commit

Permalink
fix: [NODE-1519] Fixup colliding permission services (#2933)
Browse files Browse the repository at this point in the history
A bad check in `upgrade-shared-data-store.sh` was causing a `chown -R`
to run across all of `/var/lib/ic/data`. This would then also create
additional work for `setup-permissions.sh`.

With this fix, the broad `upgrade-shared-data-store.sh` should only run
rarely. Though `setup-permissions.sh` will still scan parts of
`/var/lib/ic/data`, it will need to change less permissions which should
hopefully be an improvement as well.
  • Loading branch information
Bownairo authored Dec 4, 2024
1 parent 7558434 commit 4158ba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Description=Initialize node data storage
DefaultDependencies=no
Requires=var-lib-ic-data.mount
After=var-lib-ic-data.mount
Before=setup-permissions.service

[Install]
WantedBy=local-fs.target
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ set -e

# Fix up ownership -- should be owned by the ic replica service user.
USER=$(stat -c %U /var/lib/ic/data)
if [ "${USER}" != replica ]; then
if [ "${USER}" != ic-replica ]; then
chown -R ic-replica /var/lib/ic/data
fi

0 comments on commit 4158ba7

Please sign in to comment.