feature: merge master

pull/1045/head
耗子 2 months ago
parent 2abcaedab8
commit b6efbec3d2
No known key found for this signature in database
GPG Key ID: C964D7226D045DAA

@ -518,9 +518,9 @@ if [ "$answer" = "Y" ]; then
answer=`$root/util/ver-ge "$main_ver" 1.25.4`
if [ "$answer" = "N" ]; then
echo "$info_txt applying the patch for nginx security advisory (CVE-2024-24989)"
patch -p1 < $root/patches/nginx-CVE-2024-24989.patch || exit 1
patch -p1 < $root/patches/nginx-1.25.3-CVE-2024-24989.patch || exit 1
echo "$info_txt applying the patch for nginx security advisory (CVE-2024-24990)"
patch -p1 < $root/patches/nginx-CVE-2024-24990.patch || exit 1
patch -p1 < $root/patches/nginx-1.25.3-CVE-2024-24990.patch || exit 1
fi
fi

@ -19,8 +19,17 @@ topdir="$topdir/.."
cd $topdir/patches
for file in `ls | grep nginx-$old`; do
if [ ! -d "$old" ]; then
echo "Error: patches/$old directory not found"
exit 1
fi
mkdir -p "$new"
for file in `ls $old/ | grep nginx-$old`; do
#echo $file
new_file=`echo $file | sed s/$old/$new/`
sed "s/$old_pat/$new/g" $file | sed "s/\b$old_num\b/$new_num/g" > $new_file
sed "s/$old_pat/$new/g" "$old/$file" | sed "s/\b$old_num\b/$new_num/g" > "$new/$new_file"
done
echo "Patches synced from $old to $new"

Loading…
Cancel
Save