-
Notifications
You must be signed in to change notification settings - Fork 21
Allow patches to be updated #270
base: master
Are you sure you want to change the base?
Conversation
TODO:
|
This will overwrite random files belonging to other wikis, because the deduplication uses hardlinks. |
Is there a way to turn off the duplication after it's been done? |
You could just copy the whole directory. There might be another way, but
this will definitely work.
|
Done. Copying the files is a fairly quick operation. |
eb850d3
to
d2422d3
Compare
b8585b1
to
914b903
Compare
new/unlink.sh
Outdated
|
||
# Copy all files so they are no longer hard-link duplicates of other | ||
# files on the system (reverse of deduplicate.js) | ||
cp -r $PATCHDEMO/wikis/$NAME/w $PATCHDEMO/wikis/$NAME/w-cloned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Offline code review from @Tchanders suggested this could fail if rdfind
is running while we are updating the new wiki.
My initial though would be to leave the wiki in w-cloned
while updating, and modify our rdfind
cron job to exclude folders called w-cloned
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed (used w-updating
)
Fixes #54