Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root no longer has a Link header with rel="type" to space:storage #4

Open
bourgeoa opened this issue Mar 17, 2025 · 1 comment
Open

Comments

@bourgeoa
Copy link
Member

bourgeoa commented Mar 17, 2025

CommunitySolidServer/Recipes#53

This will solve the issue adding the missing triple to root/.meta files

# cd /mnt/volume_lon1_01

## count root/.meta files
# find solidcommunity.net/*/.meta -type f -name ".meta"  | wc -l

## list files that do contain `Storage`
# find solidcommunity.net/*/.meta -type f -name ".meta" -exec grep -L "Storage" {} ";" 

## run update
# find solidcommunity.net/*/.meta -type f -name ".meta" -exec grep -L "Storage" {} ";" -exec sed -i '$a <> a <http://www.w3.org/ns/pim/space#Storage>.' {} + | wc -l

explanation of run update

  • find root/.meta files
  • select .meta that do not have a Storage string content
  • append to each .meta the triple <> a <http://www.w3.org/ns/pim/space#Storage>.
    and print number of files appended

To test the run update script, run it twice on an existing pod folder.
find solidcommunity.net/xxxx/.meta ....

@bourgeoa
Copy link
Member Author

patch done on solidcommunity.net

  • root/.meta 16873
  • appended 16702 with the triple <> a <http://www.w3.org/ns/pim/space#Storage>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant