1 |
%define version 10.0.5 |
%define version 10.0.5 |
2 |
%define rel 4 |
%define rel 5 |
3 |
%define prerel %{nil} |
%define prerel %{nil} |
4 |
|
|
5 |
%if "%{prerel}" != "%{nil}" |
%if "%{prerel}" != "%{nil}" |
148 |
mv %{_sysconfdir}/owncloud/config.php %{_sysconfdir}/%name/config.php |
mv %{_sysconfdir}/owncloud/config.php %{_sysconfdir}/%name/config.php |
149 |
# if the default path was not changed, we move it to nextcloud |
# if the default path was not changed, we move it to nextcloud |
150 |
sed -i s+http://localhost/owncloud+http://localhost/nextcloud+ %{_sysconfdir}/%name/config.php |
sed -i s+http://localhost/owncloud+http://localhost/nextcloud+ %{_sysconfdir}/%name/config.php |
151 |
# if the default data path was not changed, we move it to nextcloud |
# if the default data path was not changed, the link has disappeared so we point to the real folder |
152 |
sed -i s+/usr/share/owncloud/data+/usr/share/nextcloud/data+ %{_sysconfdir}/%name/config.php |
sed -i s+/usr/share/owncloud/data+/var/lib/owncloud+ %{_sysconfdir}/%name/config.php |
153 |
fi |
fi |
154 |
|
|
155 |
%files |
%files |