From c9f01d322f312c36c1c03e1d4ee6d0af1574ab31 Mon Sep 17 00:00:00 2001 From: samuel Date: Wed, 1 Feb 2023 15:56:50 +0100 Subject: [PATCH] [fix] check preun and postun arg --- netoik-home.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netoik-home.spec b/netoik-home.spec index f3f7667..9877c70 100644 --- a/netoik-home.spec +++ b/netoik-home.spec @@ -24,7 +24,7 @@ Netoik home page ln --symbolic %{_var}/netoik-api/captcha %{_var}/www/%{name}/assets/img/captcha %preun -rm %{_var}/www/%{name}/assets/img/captcha +$1 -eq 0 && rm %{_var}/www/%{name}/assets/img/captcha %files %define bootstrap_version %(make bootstrap_version)