fix(persona): preserve daily receipt ownership
This commit is contained in:
parent
5e02644760
commit
cd9901e02f
2 changed files with 6 additions and 2 deletions
|
|
@ -68,8 +68,8 @@ test ! -e "${receipt}"
|
|||
/guanghu/bin/ghctl authorize /guanghu/current install_world_version |
|
||||
grep -q '^GUANGHU_ACTION_AUTHORIZED$'
|
||||
|
||||
install -d -o root -g root -m 0700 \
|
||||
"${receipt_root}" "${backup_root}"
|
||||
install -d -o guanghu -g guanghu -m 0750 "${receipt_root}"
|
||||
install -d -o root -g root -m 0700 "${backup_root}"
|
||||
for unit in "${units[@]}"; do
|
||||
if test -f "/etc/systemd/system/${unit}"; then
|
||||
cp "/etc/systemd/system/${unit}" "${temporary}/${unit}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue