From 9d8301032c0bb725d874501f4cad381e5805b261 Mon Sep 17 00:00:00 2001 From: Kron4ek Date: Wed, 7 Jun 2023 14:19:22 +0500 Subject: [PATCH] Make all overlay file writable when updating Conty Otherwise it will fail to remove the overlay at the end. --- conty-start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conty-start.sh b/conty-start.sh index 1174044..06ccc46 100755 --- a/conty-start.sh +++ b/conty-start.sh @@ -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