Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 962b2a1

Browse files
committed
Update pydio.spec.tpl
1 parent d375577 commit 962b2a1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

dist/rpm/pydio.spec.tpl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ Pydio is a web-based browser for managing files on a web server without FTP. Ful
2323

2424
%prep
2525

26-
if [ $1 -gq 1 ]; then
26+
if [ $1 -gt 1 ]; then
2727
# For upgrades
28-
[ -f %{buildroot}%{pydiodir}/.htaccess ] && cp -pf %{buildroot}%{pydiodir}/.htaccess /tmp/pydio.update.htaccess
28+
[ -f ./.htaccess ] && cp -pf ./.htaccess /tmp/pydio.update.htaccess
2929
fi
3030

3131
%setup -q -n %{name}-core-%{version}
@@ -101,10 +101,12 @@ touch %{_localstatedir}/cache/%{name}/first_run_passed
101101
fi
102102
fi
103103

104-
if [ $1 -gq 1 ]; then
104+
if [ $1 -gt 1 ]; then
105105
# For upgrades
106-
[ -f /tmp/pydio.update.htaccess ] && cp -p /tmp/pydio.update.htaccess %{buildroot}%{pydiodir}/.htaccess
107-
else
106+
[ -f /tmp/pydio.update.htaccess ] && cp -pf /tmp/pydio.update.htaccess %{buildroot}%{pydiodir}/.htaccess
107+
fi
108+
109+
if [ $1 -eq 1 ]; then
108110
# For install
109111
[ -f %{buildroot}%{pydiodir}/.htaccess ] && cp -p ./plugins/boot.conf/htaccess.tpl.linux %{buildroot}%{pydiodir}/.htaccess
110112
fi

0 commit comments

Comments
 (0)