~ubuntu-branches/ubuntu/oneiric/cobbler/oneiric

« back to all changes in this revision

Viewing changes to debian/cobbler-web.postinst

  • Committer: Package Import Robot
  • Author(s): Adam Gandelman
  • Date: 2011-08-26 12:58:21 UTC
  • Revision ID: package-import@ubuntu.com-20110826125821-pqo5o4zz6estmuw2
Tags: 2.1.0+git20110602-0ubuntu22
cobbler-web: Localize use of Ubuntu fonts, add ttf-ubuntu-font-family
as Depends. (LP #834868)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
        ln -sf /usr/share/cobbler/webroot/cobbler_webui_content /var/www/cobbler_webui_content
18
18
        ln -sf /etc/cobbler/cobbler.conf /etc/apache2/conf.d/cobbler.conf
19
19
 
 
20
        # create links to ubuntu fonts for branding.
 
21
        if [ -e ./usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf ]; then
 
22
                ln -s /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf \
 
23
                    /usr/share/cobbler/webroot/cobbler_webui_content/Ubuntu-R.ttf
 
24
        fi
 
25
        if [ -e ./usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-B.ttf ]; then
 
26
                ln -s /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-B.ttf \
 
27
                    /usr/share/cobbler/webroot/cobbler_webui_content/Ubuntu-B.ttf
 
28
        fi
 
29
 
20
30
        # Need to restart apache to pickup web configs
21
31
        if [ -f /etc/init.d/apache2 ]; then
22
32
                if [ -x /usr/sbin/invoke-rc.d ]; then