Skip to content

Commit

Permalink
Merge pull request #76 from frappe/fix-maridb-patch
Browse files Browse the repository at this point in the history
Fix maridb patch
  • Loading branch information
pdvyas committed Nov 19, 2014
2 parents 1825d04 + e657f78 commit ae1992f
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 44 deletions.
7 changes: 0 additions & 7 deletions bench/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,6 @@ def config_http_timeout(seconds):
def patch():
pass

@click.command('mariadb-config')
def _patch_mariadb_config():
"patch MariaDB 5.5.40"
repo_dir = os.path.dirname(__file__)
exec_cmd(os.path.join(repo_dir, 'patches', 'fix-mariadb.sh'), cwd=os.path.join(repo_dir, 'patches'))

@click.command('fix-perms')
def _fix_perms():
if os.path.exists("config/supervisor.conf"):
Expand Down Expand Up @@ -419,7 +413,6 @@ def _fix_perms():
exec_cmd("supervisorctl reload")


patch.add_command(_patch_mariadb_config)
patch.add_command(_fix_perms)

#Bench commands
Expand Down
13 changes: 0 additions & 13 deletions bench/patches/fix-mariadb.sh

This file was deleted.

22 changes: 0 additions & 22 deletions bench/patches/my_config.h.patch

This file was deleted.

1 change: 1 addition & 0 deletions bench/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def exec_cmd(cmd, cwd='.'):
def setup_env(bench='.'):
exec_cmd('virtualenv -q {} -p {}'.format('env', sys.executable), cwd=bench)
exec_cmd('./env/bin/pip -q install wheel', cwd=bench)
exec_cmd('./env/bin/pip -q install https://github.com/frappe/MySQLdb1/archive/MySQLdb-1.2.5-patched.tar.gz', cwd=bench)

def setup_procfile(bench='.'):
with open(os.path.join(bench, 'Procfile'), 'w') as f:
Expand Down
2 changes: 0 additions & 2 deletions install_scripts/setup_frappe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,6 @@ install_bench() {
exit 1
fi
run_cmd sudo $PIP install -e /home/$FRAPPE_USER/bench-repo
# temp MariaDB fix
sudo bench patch mariadb-config
}

setup_bench() {
Expand Down

0 comments on commit ae1992f

Please sign in to comment.