I added two lines to postinst script to fix it, so that I can rebuild the package and install it.
...
# Automatically added by dh_python2: if which pycompile >/dev/null 2>&1; then pycompile -p openstack-dashboard /usr/share/openstack-dashboard fi
# Change owner for /usr/share/openstack-dashboard chown -R horizon:horizon /usr/share/openstack-dashboard
# End automatically added section
I added two lines to postinst script to fix it, so that I can rebuild the package and install it.
...
# Automatically added by dh_python2: openstack- dashboard
if which pycompile >/dev/null 2>&1; then
pycompile -p openstack-dashboard /usr/share/
fi
# Change owner for /usr/share/ openstack- dashboard openstack- dashboard
chown -R horizon:horizon /usr/share/
# End automatically added section