mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 21:33:16 -07:00
Fix .git permissions after autoupdate
This commit is contained in:
parent
964a86de9b
commit
0873593102
1 changed files with 6 additions and 2 deletions
|
@ -349,6 +349,10 @@ if [ "${AUTOUPDATE}" = "yes" ]; then
|
|||
done
|
||||
fi
|
||||
|
||||
# .git permissions don't seem to be affected by running as root even though files inside do, so just reset
|
||||
# the permissions to match the folder
|
||||
chown -R --reference=.git .git
|
||||
|
||||
info "Update complete"
|
||||
|
||||
#make sure we're back in the right relative location before testing $0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue