mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 00:00:13 -08:00
fix: Ensure proper ownership of backup files after copying in backup-plex.sh
This commit is contained in:
@@ -1259,6 +1259,8 @@ main() {
|
|||||||
|
|
||||||
# Copy file
|
# Copy file
|
||||||
if sudo cp "$file" "$backup_file"; then
|
if sudo cp "$file" "$backup_file"; then
|
||||||
|
# Ensure proper ownership of backup file
|
||||||
|
sudo chown plex:plex "$backup_file"
|
||||||
log_success "Copied: $(basename "$file")"
|
log_success "Copied: $(basename "$file")"
|
||||||
|
|
||||||
# Verify backup
|
# Verify backup
|
||||||
|
|||||||
Reference in New Issue
Block a user