diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-28 12:02:42 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-28 12:02:42 (GMT) |
commit | 8813f6d44eac5be4fb414dd3d6e50cc49f3e7aaa (patch) | |
tree | e5f773c48db2dec23616a6fed8f58dc9c3cd5082 | |
parent | 71f6fb6c3559ef2781819fdc2caea81518276591 (diff) |
Remove ubuntu tweaks, now handled by sugar-runner
-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 |