Summary: OpenCloud core services
Name: opencloud
-Version: 1.0.10
-Release: 4
+Version: 1.0.20
+Release: 1
License: GPL+
Group: Development/Tools
Source0: %{_tmppath}/%{name}-%{version}.tar.gz
# Empty section.
%pre
-pip-python install django==1.5
+#pip-python install django==1.5
pip-python install djangorestframework
pip-python install markdown # Markdown support for the browseable API.
pip-python install pyyaml # YAML content-type support.
fi
if [ "$1" == 2 ] ; then
- echo "UPGRADE - saving current state"
- /opt/planetstack/scripts/opencloud dumpdata
+ if [[ -e /opt/planetstack/scripts/opencloud ]]; then
+ echo "UPGRADE - saving current state"
+ /opt/planetstack/scripts/opencloud dumpdata
+ fi
fi
%install
%files -f %{_tmppath}/tmp-filelist
%defattr(-,root,root,-)
%config /opt/planetstack/plstackapi_config
+%config /opt/planetstack/deployment_auth.py
%post
if [ "$1" == 1 ] ; then