diff options
Diffstat (limited to 'commands')
-rwxr-xr-x | commands/check-system | 15 | ||||
-rwxr-xr-x | commands/helpers/ubuntu-tweaks | 6 |
2 files changed, 0 insertions, 21 deletions
diff --git a/commands/check-system b/commands/check-system index 85d1f7d..1bfb3e6 100755 --- a/commands/check-system +++ b/commands/check-system @@ -6,8 +6,6 @@ import os import common from devbot import system -from devbot import config -from devbot import distro common.setup() @@ -22,19 +20,6 @@ parser.add_argument("--skip-if-unchanged", action="store_true", help="skip if unchanged from the last check") args = parser.parse_args() -def apply_ubuntu_tweaks(): - wrapper_config = open("/etc/X11/Xwrapper.config").read() - if "allowed_users=anybody" not in wrapper_config: - print "\nWe are going to allow anybody to run the X server" - - ubuntu_tweaks = os.path.join(config.commands_dir, - "helpers", "ubuntu-tweaks") - - command.run_with_sudo([ubuntu_tweaks]) - -if distro.get_distro_info().name == "ubuntu": - apply_ubuntu_tweaks() - interactive = "SUGAR_BUILDBOT" not in os.environ system.check(update=args.update, diff --git a/commands/helpers/ubuntu-tweaks b/commands/helpers/ubuntu-tweaks deleted file mode 100755 index be5ebf2..0000000 --- a/commands/helpers/ubuntu-tweaks +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -XWRAPPERCONFIG=/etc/X11/Xwrapper.config - -sed -i '/^allowed_users.*/d' $XWRAPPERCONFIG -echo "allowed_users=anybody" >> $XWRAPPERCONFIG |