base_dir = cur_dir
if sys.argv[0] != '' and sys.argv[0] != '-c':
- bin_dir = os.path.dirname(sys.argv[0])
+ bin_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
+else:
+ bin_dir = os.path.dirname(os.path.realpath(__file__))
base_dir = os.path.abspath(os.path.join(bin_dir, '..'))
module_dir = os.path.join(base_dir, 'pp_lib')
if os.path.exists(module_dir):
log = logging.getLogger(__name__)
__author__ = 'Frank Brehm <frank.brehm@pixelpark.com>'
-__copyright__ = '(C) 2017 by Frank Brehm, Pixelpark GmbH, Berlin'
+__copyright__ = '(C) 2018 by Frank Brehm, Pixelpark GmbH, Berlin'
appname = os.path.basename(sys.argv[0])
base_dir = cur_dir
if sys.argv[0] != '' and sys.argv[0] != '-c':
- bin_dir = os.path.dirname(sys.argv[0])
+ bin_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
+else:
+ bin_dir = os.path.dirname(os.path.realpath(__file__))
base_dir = os.path.abspath(os.path.join(bin_dir, '..'))
module_dir = os.path.join(base_dir, 'pp_lib')
if os.path.exists(module_dir):
base_dir = cur_dir
if sys.argv[0] != '' and sys.argv[0] != '-c':
- bin_dir = os.path.dirname(sys.argv[0])
+ bin_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
+else:
+ bin_dir = os.path.dirname(os.path.realpath(__file__))
base_dir = os.path.abspath(os.path.join(bin_dir, '..'))
module_dir = os.path.join(base_dir, 'pp_lib')
if os.path.exists(module_dir):
log = logging.getLogger(__name__)
__author__ = 'Frank Brehm <frank.brehm@pixelpark.com>'
-__copyright__ = '(C) 2017 by Frank Brehm, Pixelpark GmbH, Berlin'
+__copyright__ = '(C) 2018 by Frank Brehm, Pixelpark GmbH, Berlin'
appname = os.path.basename(sys.argv[0])
base_dir = cur_dir
if sys.argv[0] != '' and sys.argv[0] != '-c':
- bin_dir = os.path.dirname(sys.argv[0])
+ bin_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
+else:
+ bin_dir = os.path.dirname(os.path.realpath(__file__))
base_dir = os.path.abspath(os.path.join(bin_dir, '..'))
module_dir = os.path.join(base_dir, 'pp_lib')
if os.path.exists(module_dir):
log = logging.getLogger(__name__)
__author__ = 'Frank Brehm <frank.brehm@pixelpark.com>'
-__copyright__ = '(C) 2017 by Frank Brehm, Pixelpark GmbH, Berlin'
+__copyright__ = '(C) 2018 by Frank Brehm, Pixelpark GmbH, Berlin'
appname = os.path.basename(sys.argv[0])
base_dir = cur_dir
if sys.argv[0] != '' and sys.argv[0] != '-c':
- bin_dir = os.path.dirname(sys.argv[0])
+ bin_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
+else:
+ bin_dir = os.path.dirname(os.path.realpath(__file__))
base_dir = os.path.abspath(os.path.join(bin_dir, '..'))
module_dir = os.path.join(base_dir, 'pp_lib')
if os.path.exists(module_dir):
log = logging.getLogger(__name__)
__author__ = 'Frank Brehm <frank.brehm@pixelpark.com>'
-__copyright__ = '(C) 2017 by Frank Brehm, Pixelpark GmbH, Berlin'
+__copyright__ = '(C) 2018 by Frank Brehm, Pixelpark GmbH, Berlin'
appname = os.path.basename(sys.argv[0])
base_dir = cur_dir
if sys.argv[0] != '' and sys.argv[0] != '-c':
- bin_dir = os.path.dirname(sys.argv[0])
+ bin_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
+else:
+ bin_dir = os.path.dirname(os.path.realpath(__file__))
base_dir = os.path.abspath(os.path.join(bin_dir, '..'))
module_dir = os.path.join(base_dir, 'pp_lib')
if os.path.exists(module_dir):
log = logging.getLogger(__name__)
__author__ = 'Frank Brehm <frank.brehm@pixelpark.com>'
-__copyright__ = '(C) 2017 by Frank Brehm, Pixelpark GmbH, Berlin'
+__copyright__ = '(C) 2018 by Frank Brehm, Pixelpark GmbH, Berlin'
appname = os.path.basename(sys.argv[0])
base_dir = cur_dir
if sys.argv[0] != '' and sys.argv[0] != '-c':
- bin_dir = os.path.dirname(sys.argv[0])
+ bin_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
+else:
+ bin_dir = os.path.dirname(os.path.realpath(__file__))
base_dir = os.path.abspath(os.path.join(bin_dir, '..'))
module_dir = os.path.join(base_dir, 'pp_lib')
if os.path.exists(module_dir):
base_dir = cur_dir
if sys.argv[0] != '' and sys.argv[0] != '-c':
- bin_dir = os.path.dirname(sys.argv[0])
+ bin_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
+else:
+ bin_dir = os.path.dirname(os.path.realpath(__file__))
base_dir = os.path.abspath(os.path.join(bin_dir, '..'))
module_dir = os.path.join(base_dir, 'pp_lib')
if os.path.exists(module_dir):
log = logging.getLogger(__name__)
__author__ = 'Frank Brehm <frank.brehm@pixelpark.com>'
-__copyright__ = '(C) 2017 by Frank Brehm, Pixelpark GmbH, Berlin'
+__copyright__ = '(C) 2018 by Frank Brehm, Pixelpark GmbH, Berlin'
appname = os.path.basename(sys.argv[0])
log = logging.getLogger(__name__)
__author__ = 'Frank Brehm <frank.brehm@pixelpark.com>'
-__copyright__ = '(C) 2017 by Frank Brehm, Pixelpark GmbH, Berlin'
+__copyright__ = '(C) 2018 by Frank Brehm, Pixelpark GmbH, Berlin'
appname = os.path.basename(sys.argv[0])
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: The module for the application object.
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: The module for the barracuda-sync application object.
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: The module for the application object with support
for configuration files.
"""
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: The module for common used functions.
"""
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: A module for the application class for configuring named
"""
from __future__ import absolute_import
# 'last_check': 0,
# 'masters': [],
# 'name': '56.66.217.in-addr.arpa.',
- # 'notified_serial': 2017080202,
- # 'serial': 2017080202,
+ # 'notified_serial': 2018080202,
+ # 'serial': 2018080202,
# 'url': 'api/v1/servers/localhost/zones/56.66.217.in-addr.arpa.'},
zone_name = entry['name']
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: A module for the application class for configuring named
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2010 - 2017 by Frank Brehm, Publicies Pixelpark GmbH, Berlin
+@copyright: © 2018 by Frank Brehm, Publicies Pixelpark GmbH, Berlin
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: The module for the application object.
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Publicis Pixelpark GmbH, Berlin
@summary: Modules global version number
"""
__author__ = 'Frank Brehm <frank.brehm@pixelpark.com>'
__contact__ = 'frank.brehm@pixelpark.com'
-__version__ = '0.6.3'
+__version__ = '0.6.4'
__license__ = 'LGPL3+'
# vim: fileencoding=utf-8 filetype=python ts=4
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: The base module all maintaining scripts for the home directories
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: The module for the 'import-pdnsdata' application
to import all data from the current PowerDNS database
"""
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: The module for a LDAP based application object.
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2010 - 2016 by Frank Brehm, ProfitBricks GmbH, Berlin
+@copyright: © 2018 by Frank Brehm, Publicis Pixelpark GmbH, Berlin
@summary: The module for the MailAddress object.
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: The module for the mk-home application object.
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2010 - 2017 by Frank Brehm, Publicies Pixelpark GmbH, Berlin
+@copyright: © 2018 by Frank Brehm, Publicies Pixelpark GmbH, Berlin
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: The module for a application object related to PowerDNS.
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: The module for the pdns-list-zones application object.
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: The module for migration of of nameservers.
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2010 - 2017 by Frank Brehm, Publicies Pixelpark GmbH, Berlin
+@copyright: © 2018 by Frank Brehm, Publicies Pixelpark GmbH, Berlin
@summary: An encapsulation class for a DNS record object by PowerDNS API
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: The module for the pdns-show-zone application object.
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2010 - 2017 by Frank Brehm, Publicies Pixelpark GmbH, Berlin
+@copyright: © 2018 by Frank Brehm, Publicies Pixelpark GmbH, Berlin
@summary: An encapsulation class for zone objects by PowerDNS API
"""
from __future__ import absolute_import
# 'last_check': 0,
# 'masters': [],
# 'name': 'bla.ai.',
- # 'notified_serial': 2017080404,
- # 'serial': 2017080404,
+ # 'notified_serial': 2018080404,
+ # 'serial': 2018080404,
# 'url': 'api/v1/servers/localhost/zones/bla.ai.'},
self._account = account
self._dnssec = dnssec
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: A module for a pidfile object.
It provides methods to define, check, create
and remove a pidfile.
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: The module for the quota-check application object.
"""
from __future__ import absolute_import
"""
@author: Frank Brehm
@contact: frank.brehm@pixelpark.com
-@copyright: © 2017 by Frank Brehm, Berlin
+@copyright: © 2018 by Frank Brehm, Berlin
@summary: The module for the mk-home application object.
"""
from __future__ import absolute_import
log = logging.getLogger(__name__)
__author__ = 'Frank Brehm <frank.brehm@pixelpark.com>'
-__copyright__ = '(C) 2017 by Frank Brehm, Pixelpark GmbH, Berlin'
+__copyright__ = '(C) 2018 by Frank Brehm, Pixelpark GmbH, Berlin'
appname = os.path.basename(sys.argv[0])
log = logging.getLogger(__name__)
__author__ = 'Frank Brehm <frank.brehm@pixelpark.com>'
-__copyright__ = '(C) 2017 by Frank Brehm, Pixelpark GmbH, Berlin'
+__copyright__ = '(C) 2018 by Frank Brehm, Pixelpark GmbH, Berlin'
appname = os.path.basename(sys.argv[0])