Commit 00681eb
committed
keepalived-sync: fix mkdir permission denied in rsync.sh
The rsync.sh script uses sudo for rsync but not for mkdir. After the
first sync, rsync -a preserves root ownership on directories under the
sync target. Subsequent syncs fail at the mkdir step because the
keepalived user cannot create subdirectories inside root-owned
directories.
Add sudo to the mkdir command to match the existing sudo rsync usage.
Also update the sudoers configuration in the postinst script to permit
/bin/mkdir in addition to /usr/bin/rsync.
Fixes: #28565
Signed-off-by: willjay <723386252@qq.com>1 parent f4aeec6 commit 00681eb
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments