~allenap/maas/packaging.trailing-slash-optional

« back to all changes in this revision

Viewing changes to debian/maas-region-controller.postinst

  • Committer: MaaS Lander
  • Author(s): Gavin Panella
  • Date: 2015-01-14 23:04:19 UTC
  • mfrom: (330.3.20 packaging.regiond)
  • Revision ID: maas_lander-20150114230419-qc7b6n4uipl6jc71
[r=andreserl][bug=1350786][author=allenap] Packaging for maas-regiond.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        # enable apache modules needed
42
42
        a2enmod proxy_http
43
43
        a2enmod expires
44
 
        a2enmod wsgi
45
44
}
46
45
 
47
46
configure_maas_database() {
74
73
 
75
74
configure_logging() {
76
75
        # Give appropriate permissions
77
 
        if [ ! -f /var/log/maas/maas-django.log ]; then
78
 
                touch /var/log/maas/maas-django.log
 
76
        if [ ! -f /var/log/maas/regiond.log ]; then
 
77
                touch /var/log/maas/regiond.log
79
78
        fi
80
79
        chown -R maas:maas /var/log/maas
81
80
        chmod -R 775 /var/log/maas/oops
207
206
fi
208
207
 
209
208
invoke-rc.d apache2 restart || true
 
209
invoke-rc.d maas-regiond restart || true
210
210
 
211
211
if [ -f /etc/init/maas-clusterd.conf ]; then
212
212
        invoke-rc.d maas-clusterd restart || true