mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 13:24:25 -07:00
Improved softaculous.spec
This commit is contained in:
parent
286f29baff
commit
1132a5aa7a
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue