"""
+ my_uid = os.geteuid()
+ if my_uid:
+ msg = _("You must be root to execute this script.")
+ if self.simulate:
+ LOG.warn(msg)
+ time.sleep(1)
+ else:
+ LOG.error(msg)
+ self.exit(1)
+
super(PpDeployZonesApp, self).pre_run()
if self.environment == 'global':
LOG.error(_("Unknown time zone: {!r}.").format(local_tz_name))
self.exit(6)
- my_uid = os.geteuid()
- if my_uid:
- msg = _("You must be root to execute this script.")
- if self.simulate:
- LOG.warn(msg)
- time.sleep(1)
- else:
- LOG.error(msg)
- self.exit(1)
-
try:
self.pidfile.create()
except PidFileError as e: