@@ -22,7 +22,7 @@ Pydio is a web-based browser for managing files on a web server without FTP. Ful
22
22
it is the perfect tool to replace (drop)box and alikes in the enterprise.
23
23
24
24
%prep
25
- [ -f % { buildroot } % { pydiodir } /.htaccess ] && cp -pf % { buildroot } % { pydiodir } /.htaccess % { buildroot } % { _tmppath } /pydio.update.htaccess
25
+
26
26
27
27
%setup -q -n %{ name} -core-%{ version}
28
28
@@ -77,6 +77,7 @@ rm -rf %{buildroot}
77
77
%{ _sysconfdir} /%{ name} /.htaccess
78
78
%config(noreplace) %{ _sysconfdir} /%{ name} /*
79
79
%config(noreplace) %{ _sysconfdir} /httpd/conf.d/%{ name} *.conf
80
+ %config(noreplace) %{ pydiodir} /.htaccess
80
81
%attr(755,apache,apache) %{ _localstatedir} /lib/%{ name}
81
82
%dir %attr(755,apache,apache) %{ _localstatedir} /cache/%{ name}
82
83
%{ _localstatedir} /cache/%{ name} /.htaccess
@@ -89,7 +90,7 @@ rm -rf %{buildroot}
89
90
if [ -f "%{ _localstatedir} /cache/%{ name} /plugins_cache.ser" ]
90
91
then
91
92
# Upgrading an existing install
92
- [ -f %{ buildroot} %{ _tmppath} /pydio.update.htaccess ] && cp -pf %{ buildroot} %{ _tmppath} /pydio.update.htaccess %{ buildroot} %{ pydiodir} /.htaccess
93
+ # [ -f %{ buildroot} %{ _tmppath} /pydio.update.htaccess ] && cp -pf %{ buildroot} %{ _tmppath} /pydio.update.htaccess %{ buildroot} %{ pydiodir} /.htaccess
93
94
rm -f %{ _localstatedir} /cache/%{ name} /i18n/*.ser
94
95
rm -f %{ _localstatedir} /cache/%{ name} /plugins_*.ser
95
96
if [ ! -f "%{ _localstatedir} /cache/%{ name} /first_run_passed" ]
0 commit comments