Commit 5628de19 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Prepare MySQL temporary server and dump database after installation

parent a0ed5015
...@@ -39,11 +39,16 @@ all: ...@@ -39,11 +39,16 @@ all:
rm -rf frappe-home rm -rf frappe-home
echo "GRANT ALL PRIVILEGES ON *.* TO 'frappe'@'localhost' IDENTIFIED BY 'secret';" | /build/usr/bin/mysql -u root -h 127.0.0.1
echo "GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'secret';" | /build/usr/bin/mysql -u root -h 127.0.0.1
postinstall: nginx-conf postinstall: nginx-conf
cd /srv/frappe/bench && bench setup nginx cd /srv/frappe/bench && bench setup nginx
@echo "$$NGINX_CONF" > /etc/nginx/nginx.conf @echo "$$NGINX_CONF" > /etc/nginx/nginx.conf
cd /srv/frappe/bench && bench setup supervisor cd /srv/frappe/bench && bench setup supervisor
ln -s /srv/frappe/bench/config/supervisor.conf /etc/supervisord.d/erpnext.conf ln -s /srv/frappe/bench/config/supervisor.conf /etc/supervisord.d/frappe.conf
/build/usr/bin/mysqldump -u frappe -psecret -h 127.0.0.1 frappe > /srv/frappe/frappe.sql
xz -9 /srv/frappe/frappe.sql
nginx-conf: nginx-conf:
define NGINX_CONF define NGINX_CONF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment