From 655c2de6ca497e35189080f5126d5b9d2d34d495 Mon Sep 17 00:00:00 2001 From: liheavy Date: Mon, 7 Mar 2022 20:17:31 +0800 Subject: [PATCH] fix start failed --- fix-uwsgi-not-found.patch | 9 +++++++++ patch-tracking.spec | 7 ++++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 fix-uwsgi-not-found.patch diff --git a/fix-uwsgi-not-found.patch b/fix-uwsgi-not-found.patch new file mode 100644 index 0000000..57d44d0 --- /dev/null +++ b/fix-uwsgi-not-found.patch @@ -0,0 +1,9 @@ +diff --color -Nur a/patch_tracking/patch-tracking b/patch_tracking/patch-tracking +--- a/patch_tracking/patch-tracking 2020-09-07 18:26:52.000000000 +0800 ++++ b/patch_tracking/patch-tracking 2022-03-07 19:54:18.156108927 +0800 +@@ -8,4 +8,4 @@ + + server=`grep 'LISTEN' $settings_file | awk -F'=' '{print $2}' | sed -e 's/^[ ]"//g' | sed -e 's/"$//g'` + +-/usr/local/bin/uwsgi --master --https "${server},/etc/patch-tracking/self-signed.crt,/etc/patch-tracking/self-signed.key" --wsgi-file "${app_file}" --callable app --chdir "${chdir_path}" --threads 100 --lazy ++/usr/bin/uwsgi --master --https "${server},/etc/patch-tracking/self-signed.crt,/etc/patch-tracking/self-signed.key" --wsgi-file "${app_file}" --callable app --chdir "${chdir_path}" --threads 100 --lazy diff --git a/patch-tracking.spec b/patch-tracking.spec index a1561cb..418a8dc 100644 --- a/patch-tracking.spec +++ b/patch-tracking.spec @@ -1,10 +1,11 @@ Summary: This is a tool for automatically tracking upstream repository code patches Name: patch-tracking Version: 1.0.1 -Release: 2 +Release: 3 License: Mulan PSL v2 URL: https://gitee.com/openeuler/openEuler-Advisor Source0: patch-tracking-%{version}.tar +Patch0000: fix-uwsgi-not-found.patch BuildArch: noarch @@ -16,6 +17,7 @@ This is a tool for automatically tracking upstream repository code patches %prep %setup -n patch-tracking-%{version} +%patch0 -p1 %build %py3_build @@ -50,6 +52,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Mar 07 2022 liheavy - 1.0.1-3 +- Fix the problem that startup failed because A could not be found + * Tue Feb 22 2022 liheavy - 1.0.1-2 - Fix the problem that the uninstallation fails due to not recognizing systemd_preun