Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-17 19:37:44 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-17 19:37:44 (GMT)
commit827ba3c74eaabb1749e2af4a59fbc6c07c978fe7 (patch)
treecbb0b28cbc0fe5086711a1d1c43271e13b26f719 /commands
parentb56fa4bf10f98c73aa5a78ba9a707ebcebb5a3b1 (diff)
Move ubuntu tweaks out of devbot
Diffstat (limited to 'commands')
-rwxr-xr-xcommands/check-system12
1 files changed, 12 insertions, 0 deletions
diff --git a/commands/check-system b/commands/check-system
index ac0b9d3..0b77180 100755
--- a/commands/check-system
+++ b/commands/check-system
@@ -17,4 +17,16 @@ parser.add_argument("--test", action="store_true",
help="don't add or remove packages, test only")
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])
+
+apply_ubuntu_tweaks()
+
system.check(update=args.update, remove=args.remove, test=args.test)