Version in base suite: 3:14.0.2-3

Base version: horizon_3:14.0.2-3

Target version: horizon_3:14.0.2-3+deb10u2

Base files: horizon-doc_14.0.2-3_all.deb openstack-dashboard-apache_14.0.2-3_all.deb openstack-dashboard_14.0.2-3_all.deb python3-django-horizon_14.0.2-3_all.deb

Target files: horizon-doc_14.0.2-3+deb10u2_all.deb openstack-dashboard-apache_14.0.2-3+deb10u2_all.deb openstack-dashboard_14.0.2-3+deb10u2_all.deb python3-django-horizon_14.0.2-3+deb10u2_all.deb

Files only in first set of .debs, found in package openstack-dashboard

-rw-r--r-- root/root /etc/openstack-dashboard/local_settings.d/_0001_debian_debug.py
-rw-r--r-- root/root /etc/openstack-dashboard/local_settings.d/_0002_debian_compress_offline.py
-rw-r--r-- root/root /etc/openstack-dashboard/local_settings.d/_0003_debian_static_root.py
-rw-r--r-- root/root /etc/openstack-dashboard/local_settings.d/_0004_debian_osprofiler.py

New files in second set of .debs, found in package openstack-dashboard

-rw-r--r-- root/root /usr/share/openstack-dashboard-debian-settings.d/_0001_debian_debug.py
-rw-r--r-- root/root /usr/share/openstack-dashboard-debian-settings.d/_0002_debian_compress_offline.py
-rw-r--r-- root/root /usr/share/openstack-dashboard-debian-settings.d/_0003_debian_static_root.py
-rw-r--r-- root/root /usr/share/openstack-dashboard-debian-settings.d/_0004_debian_osprofiler.py
-rw-r--r-- root/root /usr/share/openstack-dashboard-debian-settings.d/_0005_debian_webroot.py

Conffiles files of package openstack-dashboard: lines which differ

/etc/openstack-dashboard/local_settings.d/_0001_debian_debug.py
/etc/openstack-dashboard/local_settings.d/_0002_debian_compress_offline.py
/etc/openstack-dashboard/local_settings.d/_0003_debian_static_root.py
/etc/openstack-dashboard/local_settings.d/_0004_debian_osprofiler.py

Postinst files of package openstack-dashboard: lines which differ

# Copy over the files to /etc/openstack-dashboard/local_settings.d
# *once*, then never do it again (as users may decide to handle configuration
# in a different way than we may think).
if [ ! -e /usr/share/openstack-dashboard-debian-settings.d/copied ] ; then
mkdir -p /etc/openstack-dashboard/local_settings.d
for i in $(find /usr/share/openstack-dashboard-debian-settings.d -type f -iname '*.py') ; do
BASENAME=$(basename $i)
install -D $i /etc/openstack-dashboard/local_settings.d/${BASENAME}
done
touch /usr/share/openstack-dashboard-debian-settings.d/copied
fi
{++}
# Create a new horizon user ###

Postrm files of package openstack-dashboard: lines which differ

rm -rf /usr/share/openstack-dashboard-debian-settings.d

Triggers files of package openstack-dashboard: lines which differ

# Named trigger which should be called from openstack-dashboard-apache
interest-noawait openstack-dashboard-rebuild-static

Postinst files of package openstack-dashboard-apache: lines which differ

OS_WEBROOT_CONF_PATH="/etc/openstack-dashboard/local_settings.d/_0005_debian_webroot.py"
{++}
# We need to check if WEBROOT config will be changed
# If yes, we need to exec compress,collect_static.
# If no, it isn't needed.
{++}
change_webroot (){
WEBROOT=$1
# If WEBROOT config exist, compare it
if [ -e ${OS_WEBROOT_CONF_PATH} ]; then
{++}
CURRENT_WEBROOT=$(cat ${OS_WEBROOT_CONF_PATH} | grep ^WEBROOT | sed -e 's/"*'\''*\ *//g' | awk -F '=' '{print $2}')
{++}
if [ "${CURRENT_WEBROOT}" = "${WEBROOT}" ]; then
echo "===> openstack-dashboard-apache: Webroot already set."
echo "===> openstack-dashboard-apache: Rebuild static not needed."
else
sed -i "s|^[ \t]*WEBROOT[ \t]=.*|WEBROOT = \"${WEBROOT}\"|" ${OS_WEBROOT_CONF_PATH}
echo "===> openstack-dashboard-apache: Setting Horizon's webroot to ${WEBROOT}"
echo "===> openstack-dashboard-apache: Horizon's webroot was changed, rebuild static is needed."
dpkg-trigger --no-await openstack-dashboard-rebuild-static
fi
fi
{++}
}
# Set webroot to / in openstack-dashboard settings
change_webroot "/"
sed -i "s|^[ \t]*WEBROOT[ \t]=.*|WEBROOT = '/'|" /etc/openstack-dashboard/local_settings.py
# Not needed in openstack-dashboard-apache
# This is done in openstack-dashboard
#if [ -f /usr/share/openstack-dashboard/manage.py ]; then
# /usr/share/openstack-dashboard/manage.py collectstatic --clear --noinput
# /usr/share/openstack-dashboard/manage.py compress --force
#fi
#if [ -f '/var/lib/openstack-dashboard/secret-key/.secret_key_store' ]; then
# rm -f /var/lib/openstack-dashboard/secret-key/.secret_key_store
#fi
#if [ -d /var/lib/openstack-dashboard/secret-key ]; then
# chown -R www-data /var/lib/openstack-dashboard/secret-key
#fi
#if [ -d /var/lib/openstack-dashboard/static ]; then
# chown -R www-data /var/lib/openstack-dashboard/static
#fi
# Set webroot to /horizon in openstack-dashboard settings
change_webroot "/horizon"
sed -i "s|^[ \t]*WEBROOT[ \t]=.*|WEBROOT = '/horizon'|" /etc/openstack-dashboard/local_settings.py
#if [ -f /usr/share/openstack-dashboard/manage.py ]; then
# /usr/share/openstack-dashboard/manage.py collectstatic --clear --noinput
# /usr/share/openstack-dashboard/manage.py compress --force
#fi
#if [ -f /var/lib/openstack-dashboard/secret-key/.secret_key_store ]; then
# rm -f /var/lib/openstack-dashboard/secret-key/.secret_key_store
#fi
#if [ -d /var/lib/openstack-dashboard/secret-key ]; then
# chown -R www-data /var/lib/openstack-dashboard/secret-key
#fi
#if [ -d /var/lib/openstack-dashboard/static ]; then
# chown -R www-data /var/lib/openstack-dashboard/static
#fi