🐛 fix(pacman): keep existing config file modes
- 🐛 refresh used to copy over the existing files, so a customized mode must survive the shared regional applicator too Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
123535ea14
commit
647979bde7
2 files changed
+9
-2
No files matched your search
@@ -49,5 +49,6 @@ for file in pacman.conf pacman.d/mirrorlist; do
|
||||
cp -f "$etc/$file" "$etc/$file.bak"
|
||||
fi
|
||||
done
|
||||
install -m 644 "$staging/pacman.conf" "$etc/pacman.conf"
|
||||
install -m 644 "$staging/mirrorlist" "$etc/pacman.d/mirrorlist"
|
||||
# Copying over an existing file keeps its owner and mode, as refresh always has.
|
||||
cp -f "$staging/pacman.conf" "$etc/pacman.conf"
|
||||
cp -f "$staging/mirrorlist" "$etc/pacman.d/mirrorlist"
|
||||
Reference in new issue
Block a user