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

Commit d375577

Browse files
committed
Update pydio.spec.tpl
1 parent 2c50c06 commit d375577

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

dist/rpm/pydio.spec.tpl

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ 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
27+
# For upgrades
28+
[ -f %{buildroot}%{pydiodir}/.htaccess ] && cp -pf %{buildroot}%{pydiodir}/.htaccess /tmp/pydio.update.htaccess
29+
fi
30+
2631
%setup -q -n %{name}-core-%{version}
2732

2833
sed -i 's/"zip"/"rpm"/g' base.conf.php
@@ -46,7 +51,7 @@ install -d %{buildroot}%{pydiodir}
4651
cp -pr . %{buildroot}%{pydiodir}
4752

4853
# correct htaccess
49-
cp -p ./plugins/boot.conf/htaccess.tpl.linux %{buildroot}%{pydiodir}/.htaccess
54+
# cp -p ./plugins/boot.conf/htaccess.tpl.linux %{buildroot}%{pydiodir}/.htaccess
5055

5156
# apache conf
5257
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
@@ -96,6 +101,13 @@ touch %{_localstatedir}/cache/%{name}/first_run_passed
96101
fi
97102
fi
98103

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

100112
%changelog
101113
* Wed Jun 01 2013 Charles du Jeu <charles@ajaxplorer.info> - 5.0.0-1

0 commit comments

Comments
 (0)