Skip to content

Instantly share code, notes, and snippets.

@JaTat
JaTat / vagrantfile
Last active January 9, 2022 21:05
Vagrant file for ERPnext set up
# encoding: utf-8
# Variable definition
VAGRANT_BOX = 'generic/ubuntu2004'
VM_NAME = 'ERPbox2'
# VM User — 'vagrant' by default
VM_USER = 'vagrant'
# path of folder that should be synced, if any
HOST_PATH = '.'
# Where to sync to on Guest — 'vagrant' is the default user name
GUEST_PATH = '/mnt/erpnext'#
@JaTat
JaTat / erpnext_provisioning.sh
Created January 9, 2022 21:06
ERPnext provisioning shell script
#!/bin/bash
# create ERP user
adduser erpnext --gecos "" --disabled-password
usermod -aG sudo erpnext
# Append MYSQL Conf to file
cat <<EOT >> /etc/mysql/my.cnf
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4