diff --git a/ec2-init.mjs b/ec2-init.mjs index 2765722..90e7d22 100644 --- a/ec2-init.mjs +++ b/ec2-init.mjs @@ -6,7 +6,7 @@ import { SSH, shell, genPwd } from "./utils.mjs"; /** * Initialize kusanagi (Nginx, MySQL, etc) */ -export const ec2Init = (config, callback) => { +export const ec2Init = (config, callback = () => {}) => { const client = new SSH(config); client.sshCentos("sudo dnf update -y");