Commits

Mikhail Korobov  committed 7e8a9e9

Correct home dir for root user

  • Participants
  • Parent commits d1409a6

Comments (0)

Files changed (1)

File fab_deploy/utils.py

     env.conf.setdefault('INSTANCE_NAME', user)
     env.conf.setdefault('PROJECT_PATH', '')
 
-    HOME_DIR = '/home/%s' % user
+    HOME_DIR = '/home/%s' % user if user != 'root' else '/root'
     SRC_DIR = posixpath.join(HOME_DIR, 'src', env.conf['INSTANCE_NAME'])
     PROJECT_DIR = posixpath.join(SRC_DIR, env.conf['PROJECT_PATH']).rstrip('/')