Skip to content

Commit 1132a5a

Browse files
author
Serghey Rodin
committed
Improved softaculous.spec
1 parent 286f29b commit 1132a5a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/rpm/specs/vesta-softaculous.spec

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ URL: https://www.softaculous.com
88
Vendor: vestacp.com
99
Source0: %{name}-%{version}.tar.gz
1010
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11-
Requires: redhat-release >= 5
11+
Requires: vesta-ioncube
1212
Provides: vesta-softaculous
1313

1414
%define _vestadir /usr/local/vesta/softaculous
@@ -31,8 +31,11 @@ rm -rf %{buildroot}
3131
%post
3232
if [ $1 -ge 1 ]; then
3333
if [ -e /usr/local/vesta/softaculous/vesta_install.inc ]; then
34-
cd /usr/local/vesta/php/bin/php vesta_install.inc
35-
rm vesta_install.inc
34+
if [ ! -e /usr/local/vesta/softaculous/conf/count.json ]; then
35+
cd /usr/local/vesta/softaculous
36+
/usr/local/vesta/php/bin/php vesta_install.inc
37+
rm vesta_install.inc
38+
fi
3639
fi
3740
fi
3841

0 commit comments

Comments
 (0)