Make all overlay file writable when updating Conty

Otherwise it will fail to remove the overlay at the end.
This commit is contained in:
Kron4ek 2023-06-07 14:19:22 +05:00 committed by GitHub
parent c88ca746c4
commit 9d8301032c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ if (( EUID == 0 )) && [ -z "$ALLOW_ROOT" ]; then
fi
# Conty version
script_version="1.24.1"
script_version="1.24.2"
# Important variables to manually adjust after modification!
# Needed to avoid problems with mounting due to an incorrect offset.
@ -987,6 +987,7 @@ if [ "$(ls "${mount_point}" 2>/dev/null)" ] || \
fusermount"${fuse_version}" -uz "${overlayfs_dir}"/merged 2>/dev/null || \
umount --lazy "${overlayfs_dir}"/merged 2>/dev/null
chmod -R 700 "${overlayfs_dir}"
rm -rf "${overlayfs_dir}" "${conty_update_temp_dir}"
clear