Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3463)

Unified Diff: enterprise_helper_linux.py

Issue 7439009: Added code to change the folder permissions of /etc/opt/chrome (Closed) Base URL: http://src.chromium.org/svn/trunk/src/chrome/test/functional/
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: enterprise_helper_linux.py
===================================================================
--- enterprise_helper_linux.py (revision 93072)
+++ enterprise_helper_linux.py (working copy)
@@ -14,6 +14,8 @@
assert os.geteuid() == 0, 'Need superuser privileges'
if sys.argv[1] == 'copy':
shutil.copy(sys.argv[2], sys.argv[3])
+ filename = sys.argv[3] + '/chrome.json'
Nirnimesh 2011/07/19 19:27:41 use os.path.join()
aocampo 2011/07/19 20:20:58 Done.
+ os.chmod(filename, 0755)
Nirnimesh 2011/07/19 19:27:41 Have you verified on the bot that this is enough?
aocampo 2011/07/19 20:20:58 Yes.
elif sys.argv[1] == 'setup_dir':
os.system('mkdir -p %s' % sys.argv[2])
elif sys.argv[1] == 'remove_dir':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698