2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 07:28:25 +00:00

[fix] wkhtmltopdf executable

This commit is contained in:
Rushabh Mehta 2016-10-13 13:08:12 +05:30
parent 517a229565
commit 2cdd938d49
2 changed files with 8 additions and 8 deletions

View File

@ -11,4 +11,7 @@
- name: copy to /usr/local/bin
copy: src="/tmp/wkhtmltox/bin/wkhtmltopdf" dest="/usr/local/bin/wkhtmltopdf"
become: true
become_user: root
become_user: root
- name: make wkhtmltopdf executable
file: path=/usr/local/bin/wkhtmltopdf mode="o+x"

View File

@ -245,7 +245,7 @@ def get_passwords(ignore_prompt=False):
# admin password
if not admin_password:
admin_password = getpass.unix_getpass(prompt='Please enter Administrator password: ')
admin_password = getpass.unix_getpass(prompt='Please enter the default Administrator user password: ')
conf_admin_passswd = getpass.unix_getpass(prompt='Re-enter Administrator password: ')
if admin_password != conf_admin_passswd:
@ -266,6 +266,8 @@ def get_passwords(ignore_prompt=False):
with open(passwords_file_path, 'w') as f:
json.dump(passwords, f, indent=1)
print 'Passwords saved at ~/passwords.txt'
return passwords
def get_extra_vars_json(extra_args):
@ -348,9 +350,4 @@ if __name__ == '__main__':
install_bench(args)
print '''
Frappe/ERPNext has been successfully installed on your machine.
Please find mysql root password and admin password in "passwords.txt" in your root directory,
you can remove the file after making note of the passwords.
'''
print '''Frappe/ERPNext has been successfully installed!'''