Skip to content

Instantly share code, notes, and snippets.

@JaTat
Created January 9, 2022 21:06
Show Gist options
  • Save JaTat/4f7084a778ac1b1da74dc8b88779be00 to your computer and use it in GitHub Desktop.
Save JaTat/4f7084a778ac1b1da74dc8b88779be00 to your computer and use it in GitHub Desktop.
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
collation-server = utf8mb4_unicode_ci
[mysql]
default-character-set = utf8mb4
EOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment