Skip to content

Commit 28e34fd

Browse files
authored
Unzip Archive overwrite fix
when zip archive is unzip it gives error "" archive was not extracted "" in case there were same files already present in the folder , its due to overwrite flag (-o) missing in unzip command used in vestacp
1 parent a50fa85 commit 28e34fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-extract-fs-archive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fi
8282
# Extracting ziped archive
8383
if [ ! -z "$(echo $src_file |grep -i '.zip')" ]; then
8484
sudo -u $user mkdir -p "$dst_dir" >/dev/null 2>&1
85-
sudo -u $user unzip "$src_file" -d "$dst_dir" >/dev/null 2>&1
85+
sudo -u $user unzip -o "$src_file" -d "$dst_dir" >/dev/null 2>&1
8686
rc=$?
8787
fi
8888

0 commit comments

Comments
 (0)