Skip to content

Commit

Permalink
fix: dir permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh6790 committed Jun 14, 2019
1 parent 48cdcfa commit d5003e1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions playbooks/site.yml
Expand Up @@ -39,6 +39,9 @@

- name: setup bench and dev environment
hosts: localhost
become: '{{ use_sudo }}'
become_user: '{{ frappe_user }}'
become_method: sudo
vars:
bench_repo_path: "/home/{{ frappe_user }}/.bench"
bench_path: "/home/{{ frappe_user }}/{{ bench_name }}"
Expand Down
2 changes: 1 addition & 1 deletion vm/build.py
Expand Up @@ -33,7 +33,7 @@ def install_virtualbox():
check_output(['bench', 'install', 'virtualbox'])

def install_packer():
if not spawn.find_executable("packer") or not os.path.exists(os.path.join('/', 'opt', 'packer')):
if not spawn.find_executable("packer") and not os.path.exists(os.path.join('/', 'opt', 'packer')):
check_output(['bench', 'install', 'packer'])

def silent_remove(name, is_dir=False):
Expand Down
2 changes: 1 addition & 1 deletion vm/vm-develop.json
Expand Up @@ -38,7 +38,7 @@
"iso_checksum_type": "md5",
"ssh_username": "frappe",
"ssh_password": "frappe",
"ssh_port": 22,
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"http_directory": "http",
"guest_additions_mode": "disable",
Expand Down
2 changes: 1 addition & 1 deletion vm/vm-production.json
Expand Up @@ -38,7 +38,7 @@
"iso_checksum_type": "md5",
"ssh_username": "frappe",
"ssh_password": "frappe",
"ssh_port": 22,
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"http_directory": "http",
"guest_additions_mode": "disable",
Expand Down

0 comments on commit d5003e1

Please sign in to comment.