~andreserl/maas/lp1555308

« back to all changes in this revision

Viewing changes to debian/extras/maas-rack

  • Committer: MAAS Lander
  • Author(s): Lee Trager
  • Date: 2016-03-07 22:28:26 UTC
  • mfrom: (453.1.2 packaging.trunk)
  • Revision ID: maas_lander-20160307222826-zrzr3rhsz447xqqb
[r=andreserl][bug=][author=ltrager] Fix renaming of maas-provision to maas-rack and maas-region-admin to maas-region

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python3
2
 
# Copyright 2015 Canonical Ltd.  This software is licensed under the
 
2
# Copyright 2016 Canonical Ltd.  This software is licensed under the
3
3
# GNU Affero General Public License version 3 (see the file LICENSE).
4
4
 
5
5
from __future__ import (
15
15
 
16
16
import grp
17
17
import os
 
18
import sys
18
19
 
19
20
 
20
21
def check_user():
45
46
 
46
47
 
47
48
def main():
 
49
    if 'maas-provision' in sys.argv[0]:
 
50
        sys.stderr.write(
 
51
            "WARNING: The maas-provision command is deprecated and will be "
 
52
            "removed in a future version. From now on please use 'maas-rack' "
 
53
            "instead.\n")
 
54
 
48
55
    check_user()
49
56
    set_group()
50
57
    set_umask()