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

Commit 2a363f0

Browse files
committed
Fix scriptlet %post
1 parent 26c1979 commit 2a363f0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dist/rpm/pydio.spec.tpl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ install -d %{buildroot}%{pydiodir}
4747
cp -pr . %{buildroot}%{pydiodir}
4848

4949
# correct htaccess
50-
# cp -p ./plugins/boot.conf/htaccess.tpl.linux %{buildroot}%{pydiodir}/.htaccess
5150

5251
# apache conf
5352
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
@@ -90,7 +89,6 @@ rm -rf %{buildroot}
9089
if [ -f "%{_localstatedir}/cache/%{name}/plugins_cache.ser" ]
9190
then
9291
# Upgrading an existing install
93-
# [ -f %{buildroot}%{_tmppath}/pydio.update.htaccess ] && cp -pf %{buildroot}%{_tmppath}/pydio.update.htaccess %{buildroot}%{pydiodir}/.htaccess
9492
rm -f %{_localstatedir}/cache/%{name}/i18n/*.ser
9593
rm -f %{_localstatedir}/cache/%{name}/plugins_*.ser
9694
if [ ! -f "%{_localstatedir}/cache/%{name}/first_run_passed" ]
@@ -99,7 +97,7 @@ touch %{_localstatedir}/cache/%{name}/first_run_passed
9997
fi
10098
else
10199
# Brand new install
102-
[ -f %{buildroot}%{pydiodir}/.htaccess ] && cp -p ./plugins/boot.conf/htaccess.tpl.linux %{buildroot}%{pydiodir}/.htaccess
100+
cp -p %{pydiodir}/plugins/boot.conf/htaccess.tpl.linux %{pydiodir}/.htaccess
103101
fi
104102

105103

0 commit comments

Comments
 (0)