Improved softaculous.spec

This commit is contained in:
Serghey Rodin 2017-12-20 17:39:50 +02:00
commit 1132a5aa7a

View file

@ -8,7 +8,7 @@ URL: https://www.softaculous.com
Vendor: vestacp.com Vendor: vestacp.com
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: redhat-release >= 5 Requires: vesta-ioncube
Provides: vesta-softaculous Provides: vesta-softaculous
%define _vestadir /usr/local/vesta/softaculous %define _vestadir /usr/local/vesta/softaculous
@ -31,8 +31,11 @@ rm -rf %{buildroot}
%post %post
if [ $1 -ge 1 ]; then if [ $1 -ge 1 ]; then
if [ -e /usr/local/vesta/softaculous/vesta_install.inc ]; then if [ -e /usr/local/vesta/softaculous/vesta_install.inc ]; then
cd /usr/local/vesta/php/bin/php vesta_install.inc if [ ! -e /usr/local/vesta/softaculous/conf/count.json ]; then
rm vesta_install.inc cd /usr/local/vesta/softaculous
/usr/local/vesta/php/bin/php vesta_install.inc
rm vesta_install.inc
fi
fi fi
fi fi