This repository was archived by the owner on Nov 25, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ Pydio is a web-based browser for managing files on a web server without FTP. Ful
23
23
24
24
%prep
25
25
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
+
26
31
%setup -q -n %{ name} -core-%{ version}
27
32
28
33
sed -i 's/"zip"/"rpm"/g' base.conf.php
@@ -46,7 +51,7 @@ install -d %{buildroot}%{pydiodir}
46
51
cp -pr . %{ buildroot} %{ pydiodir}
47
52
48
53
# 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
50
55
51
56
# apache conf
52
57
mkdir -p %{ buildroot} %{ _sysconfdir} /httpd/conf.d
@@ -96,6 +101,13 @@ touch %{_localstatedir}/cache/%{name}/first_run_passed
96
101
fi
97
102
fi
98
103
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
99
111
100
112
%changelog
101
113
* Wed Jun 01 2013 Charles du Jeu <charles @ajaxplorer.info > - 5.0.0-1
You can’t perform that action at this time.
0 commit comments