Skip to content

Commit

Permalink
fix: make callback param for ec2-init default to noop
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanShaw committed Aug 11, 2022
1 parent 10efade commit 71fbd93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ec2-init.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 71fbd93

Please sign in to comment.