Commits

Vladimir Mihailenco committed d47c7aa

Fix permissions

  • Participants
  • Parent commits ab3005f

Comments (0)

Files changed (1)

fab_deploy/virtualenv.py

     username = username or env.conf.USER
     home_dir = utils.get_home_dir(username)
 
-    run('mkdir --parents %s.pip' % home_dir)
-    utils.upload_config_template('pip.conf',
-        home_dir + '.pip/pip.conf', skip_unexistent=True)
+    @utils.run_as(username)
+    def do_setup_conf():
+        run('mkdir --parents %s.pip' % home_dir)
+        utils.upload_config_template('pip.conf',
+            home_dir + '.pip/pip.conf', skip_unexistent=True)
+
+    do_setup_conf()
 
 def virtualenv_create():
     run('mkdir -p envs')