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 +5
-14
lines changed Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -22,11 +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
-
26
- if [ $1 -gt 1 ]; then
27
- # For upgrades
28
- [ -f ./.htaccess ] && cp -pf ./.htaccess /tmp/pydio.update.htaccess
29
- fi
25
+ [ -f %{ buildroot} %{ pydiodir} /.htaccess ] && cp -pf %{ buildroot} %{ pydiodir} /.htaccess /tmp/pydio.update.htaccess
30
26
31
27
%setup -q -n %{ name} -core-%{ version}
32
28
@@ -93,23 +89,18 @@ rm -rf %{buildroot}
93
89
if [ -f "%{ _localstatedir} /cache/%{ name} /plugins_cache.ser" ]
94
90
then
95
91
# Upgrading an existing install
92
+ [ -f /tmp/pydio.update.htaccess ] && cp -pf /tmp/pydio.update.htaccess %{ buildroot} %{ pydiodir} /.htaccess
96
93
rm -f %{ _localstatedir} /cache/%{ name} /i18n/*.ser
97
94
rm -f %{ _localstatedir} /cache/%{ name} /plugins_*.ser
98
95
if [ ! -f "%{ _localstatedir} /cache/%{ name} /first_run_passed" ]
99
96
then
100
97
touch %{ _localstatedir} /cache/%{ name} /first_run_passed
101
98
fi
99
+ else
100
+ # Brand new install
101
+ [ -f %{ buildroot} %{ pydiodir} /.htaccess ] && cp -p ./plugins/boot.conf/htaccess.tpl.linux %{ buildroot} %{ pydiodir} /.htaccess
102
102
fi
103
103
104
- if [ $1 -gt 1 ]; then
105
- # For upgrades
106
- [ -f /tmp/pydio.update.htaccess ] && cp -pf /tmp/pydio.update.htaccess %{ buildroot} %{ pydiodir} /.htaccess
107
- fi
108
-
109
- if [ $1 -eq 1 ]; then
110
- # For install
111
- [ -f %{ buildroot} %{ pydiodir} /.htaccess ] && cp -p ./plugins/boot.conf/htaccess.tpl.linux %{ buildroot} %{ pydiodir} /.htaccess
112
- fi
113
104
114
105
%changelog
115
106
* 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