--- /dev/null
+WSGIScriptAlias /horizon /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
+WSGIDaemonProcess horizon user=www-data group=www-data
+Alias /static /usr/share/openstack-dashboard/openstack_dashboard/static
+Alias /horizon/static /usr/share/openstack-dashboard/openstack_dashboard/static
+
+
+<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi/>
+ Order allow,deny
+ Allow from all
+</Directory>
+<Directory /usr/lib/python2.7/dist-packages/horizon/static/horizon>
+ Order allow,deny
+ Allow from all
+</Directory>
+<Directory /usr/share/openstack-dashboard/openstack_dashboard/static/>
+ Order allow,deny
+ Allow from all
+</Directory>
+horizon (1:8.0.0~b3-4) experimental; urgency=medium
+
+ * Now also allowing Horizon to be installed in /horizon, not just on the
+ takeover of webroot. This will be the default.
+
+ -- Thomas Goirand <zigo@debian.org> Tue, 22 Sep 2015 13:27:52 +0000
+
horizon (1:8.0.0~b3-3) experimental; urgency=medium
* Also adds symlink to the fonts-roboto-fontface and materialdesignicons
debian/apache-sites-available/openstack-dashboard-ssl-redirect.conf /etc/apache2/sites-available
debian/apache-sites-available/openstack-dashboard-ssl.conf /etc/apache2/sites-available
debian/apache-sites-available/openstack-dashboard.conf /etc/apache2/sites-available
+debian/apache-sites-available/openstack-dashboard-alias-only.conf /etc/apache2/sites-available
db_get horizon/activate_vhost
if [ "${RET}" = "true" ] && [ -x /etc/init.d/apache2 ] ; then
sed -i 's#[ \t]*HORIZON_ACTIVATE_VHOSTS=.*#HORIZON_ACTIVATE_VHOSTS=yes#' /etc/default/openstack-dashboard-apache
- a2dissite default || true
+ a2dissite 000-default.conf || true
+ a2dissite default-ssl.conf || true
+ sed -i "s|^[ \t]*WEBROOT[ \t]=.*|WEBROOT = '/'|" /etc/openstack-dashboard/local_settings.py
db_get horizon/use_ssl
if [ "${RET}" = "true" ] ; then
sed -i 's#[ \t]*HORIZON_USE_SSL=.*#HORIZON_USE_SSL=yes#' /etc/default/openstack-dashboard-apache
a2enmod ssl
a2enmod rewrite
a2dissite openstack-dashboard.conf
+ a2dissite openstack-dashboard-alias-only.conf
a2ensite openstack-dashboard-ssl-redirect.conf
a2ensite openstack-dashboard-ssl.conf
else
sed -i 's#[ \t]*HORIZON_USE_SSL=.*#HORIZON_USE_SSL=no#' /etc/default/openstack-dashboard-apache
a2dissite openstack-dashboard-ssl.conf
a2dissite openstack-dashboard-ssl-redirect.conf
+ a2dissite openstack-dashboard-alias-only.conf
a2ensite openstack-dashboard.conf
fi
+ /usr/share/openstack-dashboard/manage.py compress --force
invoke-rc.d --quiet apache2 reload
else
sed -i 's#[ \t]*HORIZON_ACTIVATE_VHOSTS=.*#HORIZON_ACTIVATE_VHOSTS=no#' /etc/default/openstack-dashboard-apache
+ a2ensite 000-default.conf || true
+ a2ensite default-ssl.conf || true
+ sed -i "s|^[ \t]*WEBROOT[ \t]=.*|WEBROOT = '/horizon'|" /etc/openstack-dashboard/local_settings.py
+ a2dissite openstack-dashboard.conf
+ a2dissite openstack-dashboard-ssl-redirect.conf
+ a2dissite openstack-dashboard-ssl.conf
+ a2ensite openstack-dashboard-alias-only.conf
+ /usr/share/openstack-dashboard/manage.py compress --force
+ invoke-rc.d --quiet apache2 reload
fi
db_stop
fi
The Apache package sets up a default web site and a default page, configured
in /etc/apache2/sites-available/default.
.
+ If this option is not selected, Horizon will be installed using /horizon
+ instead of the webroot.
+ .
Choose this option to replace that default with the OpenStack Dashboard
configuration.
msgstr ""
"Project-Id-Version: horizon 2013.1.3-2\n"
"Report-Msgid-Bugs-To: horizon@packages.debian.org\n"
-"POT-Creation-Date: 2013-10-08 19:12+0200\n"
+"POT-Creation-Date: 2015-09-22 13:31+0000\n"
"PO-Revision-Date: 2013-10-12 10:41+0200\n"
"Last-Translator: Michal Simunek <michal.simunek@gmail.com>\n"
"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
"Balíček Apache má výchozí web a výchozí stránku nastavené v /etc/apache2/"
"sites-available/default."
+#. Type: boolean
+#. Description
+#: ../openstack-dashboard-apache.templates:2001
+msgid ""
+"If this option is not selected, Horizon will be installed using /horizon "
+"instead of the webroot."
+msgstr ""
+
#. Type: boolean
#. Description
#: ../openstack-dashboard-apache.templates:2001
"Choose this option to replace that default with the OpenStack Dashboard "
"configuration."
msgstr ""
-"Tuto možnost zvolte k nahrazení výchozího nastavení nastavením "
-"Ovládacího panelu pro OpenStack."
+"Tuto možnost zvolte k nahrazení výchozího nastavení nastavením Ovládacího "
+"panelu pro OpenStack."
#. Type: boolean
#. Description
msgstr ""
"Project-Id-Version: horizon\n"
"Report-Msgid-Bugs-To: horizon@packages.debian.org\n"
-"POT-Creation-Date: 2013-10-08 19:12+0200\n"
+"POT-Creation-Date: 2015-09-22 13:31+0000\n"
"PO-Revision-Date: 2013-10-10 23:51+0200\n"
"Last-Translator: Joe Hansen <joedalton2@yahoo.dk>\n"
"Language-Team: Danish <debian-l10n-danish@lists.debian.org>\n"
"The Apache package sets up a default web site and a default page, configured "
"in /etc/apache2/sites-available/default."
msgstr ""
-"Pakken Apache opsætter en standardnetside og en standardside, konfigureret i !"
-"/etc/apache2/sites-available/default."
+"Pakken Apache opsætter en standardnetside og en standardside, konfigureret "
+"i !/etc/apache2/sites-available/default."
+
+#. Type: boolean
+#. Description
+#: ../openstack-dashboard-apache.templates:2001
+msgid ""
+"If this option is not selected, Horizon will be installed using /horizon "
+"instead of the webroot."
+msgstr ""
#. Type: boolean
#. Description
"Choose this option to replace that default with the OpenStack Dashboard "
"configuration."
msgstr ""
-"Vælg denne indstilling for at erstatte den standard med Openstack "
-"Dashboard-konfigurationen."
+"Vælg denne indstilling for at erstatte den standard med Openstack Dashboard-"
+"konfigurationen."
#. Type: boolean
#. Description
msgstr ""
"Project-Id-Version: horizon 2014.1-2\n"
"Report-Msgid-Bugs-To: horizon@packages.debian.org\n"
-"POT-Creation-Date: 2014-03-07 10:34+0100\n"
+"POT-Creation-Date: 2015-09-22 13:31+0000\n"
"PO-Revision-Date: 2014-06-05 22:45+0100\n"
"Last-Translator: Chris Leick <c.leick@vollbio.de>\n"
"Language-Team: German <debian-l10n-german@lists.debian.org>\n"
"Das Paket Apache richtet eine Standard-Website und eine Standardseite ein, "
"die in /etc/apache2/sites-available/default konfiguriert werden."
+#. Type: boolean
+#. Description
+#: ../openstack-dashboard-apache.templates:2001
+msgid ""
+"If this option is not selected, Horizon will be installed using /horizon "
+"instead of the webroot."
+msgstr ""
+
#. Type: boolean
#. Description
#: ../openstack-dashboard-apache.templates:2001
"Choose this option to replace that default with the OpenStack Dashboard "
"configuration."
msgstr ""
-"Wählen Sie diese Option, um diese Voreinstellung durch die "
-"OpenStack-Dashboard-Konfiguration zu ersetzen."
+"Wählen Sie diese Option, um diese Voreinstellung durch die OpenStack-"
+"Dashboard-Konfiguration zu ersetzen."
#. Type: boolean
#. Description
msgstr ""
"Project-Id-Version: horizon\n"
"Report-Msgid-Bugs-To: horizon@packages.debian.org\n"
-"POT-Creation-Date: 2014-03-07 10:34+0100\n"
+"POT-Creation-Date: 2015-09-22 13:31+0000\n"
"PO-Revision-Date: 2013-12-08 21:21-0300\n"
"Last-Translator: Matías Bellone <matiasbellone+debian@gmail.com>\n"
"Language-Team: Debian Spanish <debian-l10n-spanish@lists.debian.org>\n"
"Seleccione esta opción si desea desactivar esta configuración y reemplazarla "
"con la configuración del panel de control de OpenStack («Dashboard»)."
+#. Type: boolean
+#. Description
+#: ../openstack-dashboard-apache.templates:2001
+msgid ""
+"If this option is not selected, Horizon will be installed using /horizon "
+"instead of the webroot."
+msgstr ""
+
#. Type: boolean
#. Description
#: ../openstack-dashboard-apache.templates:2001
msgstr ""
"Project-Id-Version: horizon\n"
"Report-Msgid-Bugs-To: horizon@packages.debian.org\n"
-"POT-Creation-Date: 2014-03-07 10:34+0100\n"
+"POT-Creation-Date: 2015-09-22 13:31+0000\n"
"PO-Revision-Date: 2013-10-09 09:09+0100\n"
"Last-Translator: Julien Patriarca <leatherface@debian.org>\n"
"Language-Team: FRENCH <debian-l10n-french@lists.debian.org>\n"
"Le paquet Apache installe un site et une page par défaut, configurés dans /"
"etc/apache2/sites-available/default."
+#. Type: boolean
+#. Description
+#: ../openstack-dashboard-apache.templates:2001
+msgid ""
+"If this option is not selected, Horizon will be installed using /horizon "
+"instead of the webroot."
+msgstr ""
+"Si cette option n'est pas selectionée, Horizon sera installé sur /horizon "
+"plustot que la racine du server web."
+
#. Type: boolean
#. Description
#: ../openstack-dashboard-apache.templates:2001
"Choose this option to replace that default with the OpenStack Dashboard "
"configuration."
msgstr ""
-"Choisissez cette option pour remplacer ce réglage par défaut par la "
+"Choisissez cette option pour remplacer le réglage par défaut par la "
"configuration d'OpenStack Dashboard."
#. Type: boolean
#. Description
#: ../openstack-dashboard-apache.templates:3001
msgid "Should the Dashboard use HTTPS?"
-msgstr "Faut-il utiliser HTTPS pour Dashboard ?"
+msgstr "Faut-il utiliser HTTPS pour le Dashboard ?"
#. Type: boolean
#. Description
"Select this option if you would like Horizon to be served over HTTPS only, "
"with a redirection to HTTPS if HTTP is in use."
msgstr ""
-"Veuillez choisir si vous souhaitez qu'Horizon soit installé sur HTTPS "
+"Veuillez choisir cette option si vous souhaitez qu'Horizon soit installé sur HTTPS "
"uniquement, avec une redirection vers HTTPS si HTTP est utilisé."
msgstr ""
"Project-Id-Version: horizon\n"
"Report-Msgid-Bugs-To: horizon@packages.debian.org\n"
-"POT-Creation-Date: 2014-03-07 10:34+0100\n"
+"POT-Creation-Date: 2015-09-22 13:31+0000\n"
"PO-Revision-Date: 2013-10-19 18:48+0200\n"
"Last-Translator: Beatrice Torracca <beatricet@libero.it>\n"
"Language-Team: Italian <debian-l10n-italian@lists.debian.org>\n"
"Il pacchetto Apache imposta un sito web e una pagina predefiniti, "
"configurati in /etc/apache2/sites-available/default."
+#. Type: boolean
+#. Description
+#: ../openstack-dashboard-apache.templates:2001
+msgid ""
+"If this option is not selected, Horizon will be installed using /horizon "
+"instead of the webroot."
+msgstr ""
+
#. Type: boolean
#. Description
#: ../openstack-dashboard-apache.templates:2001
msgstr ""
"Project-Id-Version: horizon\n"
"Report-Msgid-Bugs-To: horizon@packages.debian.org\n"
-"POT-Creation-Date: 2014-03-07 10:34+0100\n"
+"POT-Creation-Date: 2015-09-22 13:31+0000\n"
"PO-Revision-Date: 2013-07-19 23:32+0900\n"
"Last-Translator: victory <victory.deb@gmail.com>\n"
"Language-Team: Japanese <debian-japanese@lists.debian.org>\n"
"Apache パッケージがデフォルトウェブサイトやデフォルトページを用意しています。"
"これは /etc/apache2/sites-available/default で設定されています。"
+#. Type: boolean
+#. Description
+#: ../openstack-dashboard-apache.templates:2001
+msgid ""
+"If this option is not selected, Horizon will be installed using /horizon "
+"instead of the webroot."
+msgstr ""
+
#. Type: boolean
#. Description
#: ../openstack-dashboard-apache.templates:2001
msgstr ""
"Project-Id-Version: horizon\n"
"Report-Msgid-Bugs-To: horizon@packages.debian.org\n"
-"POT-Creation-Date: 2014-03-07 10:34+0100\n"
+"POT-Creation-Date: 2015-09-22 13:31+0000\n"
"PO-Revision-Date: 2014-10-08 23:05+0200\n"
"Last-Translator: Frans Spiesschaert <Frans.Spiesschaert@yucom.be>\n"
"Language-Team: Dutch <debian-l10n-dutch@lists.debian.org>\n"
"Het pakket Apache zet een standaardwebsite en een standaardpagina op in /etc/"
"apache2/sites-available/default."
+#. Type: boolean
+#. Description
+#: ../openstack-dashboard-apache.templates:2001
+msgid ""
+"If this option is not selected, Horizon will be installed using /horizon "
+"instead of the webroot."
+msgstr ""
+
#. Type: boolean
#. Description
#: ../openstack-dashboard-apache.templates:2001
msgstr ""
"Project-Id-Version: horizon 2013.2-1\n"
"Report-Msgid-Bugs-To: horizon@packages.debian.org\n"
-"POT-Creation-Date: 2014-03-07 10:34+0100\n"
+"POT-Creation-Date: 2015-09-22 13:31+0000\n"
"PO-Revision-Date: 2013-11-18 19:42+0000\n"
"Last-Translator: Américo Monteiro <a_monteiro@gmx.com>\n"
"Language-Team: Portuguese <traduz@debianpt.org>\n"
"O pacote Apache define um sítio web predefinido e uma página predefinida, "
"configurada em /etc/apache2/sites-available/default."
+#. Type: boolean
+#. Description
+#: ../openstack-dashboard-apache.templates:2001
+msgid ""
+"If this option is not selected, Horizon will be installed using /horizon "
+"instead of the webroot."
+msgstr ""
+
#. Type: boolean
#. Description
#: ../openstack-dashboard-apache.templates:2001
msgstr ""
"Project-Id-Version: horizon 2013.1.3-2\n"
"Report-Msgid-Bugs-To: horizon@packages.debian.org\n"
-"POT-Creation-Date: 2014-03-07 10:34+0100\n"
+"POT-Creation-Date: 2015-09-22 13:31+0000\n"
"PO-Revision-Date: 2013-10-09 19:26+0400\n"
"Last-Translator: Yuri Kozlov <yuray@komyakino.ru>\n"
"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
"В пакете Apache уже настроен веб-сайт и страница по умолчанию согласно /etc/"
"apache2/sites-available/default."
+#. Type: boolean
+#. Description
+#: ../openstack-dashboard-apache.templates:2001
+msgid ""
+"If this option is not selected, Horizon will be installed using /horizon "
+"instead of the webroot."
+msgstr ""
+
#. Type: boolean
#. Description
#: ../openstack-dashboard-apache.templates:2001
msgstr ""
"Project-Id-Version: horizon\n"
"Report-Msgid-Bugs-To: horizon@packages.debian.org\n"
-"POT-Creation-Date: 2014-03-07 10:34+0100\n"
+"POT-Creation-Date: 2015-09-22 13:31+0000\n"
"PO-Revision-Date: 2015-04-01 16:51+0100\n"
"Last-Translator: Martin Bagge / brother <brother@bsnet.se>\n"
"Language-Team: Swedish <debian-l10n-swedish@lists.debian.org>\n"
"Apache-paketet levereras med en standard webbplats och en standard sida, "
"dessa inställningar finns i /etc/apache2/sites-available/default."
+#. Type: boolean
+#. Description
+#: ../openstack-dashboard-apache.templates:2001
+msgid ""
+"If this option is not selected, Horizon will be installed using /horizon "
+"instead of the webroot."
+msgstr ""
+
#. Type: boolean
#. Description
#: ../openstack-dashboard-apache.templates:2001
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
+# This file is distributed under the same license as the horizon package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgstr ""
"Project-Id-Version: horizon\n"
"Report-Msgid-Bugs-To: horizon@packages.debian.org\n"
-"POT-Creation-Date: 2014-03-07 10:34+0100\n"
+"POT-Creation-Date: 2015-09-22 13:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"in /etc/apache2/sites-available/default."
msgstr ""
+#. Type: boolean
+#. Description
+#: ../openstack-dashboard-apache.templates:2001
+msgid ""
+"If this option is not selected, Horizon will be installed using /horizon "
+"instead of the webroot."
+msgstr ""
+
#. Type: boolean
#. Description
#: ../openstack-dashboard-apache.templates:2001
mv $(CURDIR)/debian/openstack-dashboard/usr/share/openstack-dashboard/openstack_dashboard/static/dashboard/scss/* $(CURDIR)/debian/openstack-dashboard/var/lib/openstack-dashboard/static/scss
rmdir $(CURDIR)/debian/openstack-dashboard/usr/share/openstack-dashboard/openstack_dashboard/static/dashboard/scss
dh_link
+ for i in auth framework horizon ; do \
+ ln -s /usr/lib/python2.7/dist-packages/horizon/static/$$i $(CURDIR)/debian/openstack-dashboard/usr/share/openstack-dashboard/openstack_dashboard/static/$$i ; \
+ done
override_dh_auto_clean:
dh_auto_clean