File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
13# #############################################
24# 마지막 수정: 250929
35# 작성자: gooraeng
68# 변수는 terraform 에서 치환됨
79# #############################################
810
9- #!/bin/bash
1011# EC2 에서 쓰일 스크립트
11-
1212# 가상 메모리 4GB 설정 (128M * 32)
1313if ! grep -q " /swapfile" /etc/fstab; then
1414 dd if=/dev/zero of=/swapfile bs=128M count=32
1515 chmod 600 /swapfile
1616 mkswap /swapfile
1717 swapon /swapfile
18- sh -c echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
18+ echo " /swapfile swap swap defaults 0 0" >> /etc/fstab
1919fi
2020
2121# 타임존 설정
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ locals {
4545
4646 ec2_user_data = templatefile (" ${ path . module } /ec2_user_data.tpl" , {
4747 password = var.default_password,
48- base_domain = var.base_domain,
48+ base_domain = var.base_domain,
4949 github_token_owner = var.github_token_owner,
5050 github_token = var.github_token,
5151 nginx_admin_email = var.nginx_admin_email,
You can’t perform that action at this time.
0 commit comments