[fix] Rewrite spec scriptlets
This commit is contained in:
parent
a93ed4637b
commit
b29f85d864
|
@ -21,10 +21,14 @@ Netoik home page
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
# Create symbolic link in order to access generated captcha images.
|
||||||
ln --symbolic %{_var}/netoik-api/captcha %{_var}/www/%{name}/assets/img/captcha
|
ln --symbolic %{_var}/netoik-api/captcha %{_var}/www/%{name}/assets/img/captcha
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
[ $1 -eq 0 ] && rm %{_var}/www/%{name}/assets/img/captcha
|
# Remove symbolic link only if uninstalling.
|
||||||
|
if [ $1 -eq 0 ]; then
|
||||||
|
rm %{_var}/www/%{name}/assets/img/captcha
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%define bootstrap_version %(make bootstrap_version)
|
%define bootstrap_version %(make bootstrap_version)
|
||||||
|
|
Loading…
Reference in New Issue