Skip to content

Commit dd578e6

Browse files
committed
fix: 스크립트 수정
1 parent 3b672ca commit dd578e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

infra/aws/terraform/ec2_user_data.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/bash
2+
13
##############################################
24
# 마지막 수정: 250929
35
# 작성자: gooraeng
@@ -6,16 +8,14 @@
68
# 변수는 terraform 에서 치환됨
79
##############################################
810

9-
#!/bin/bash
1011
# EC2 에서 쓰일 스크립트
11-
1212
# 가상 메모리 4GB 설정 (128M * 32)
1313
if ! 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
1919
fi
2020

2121
# 타임존 설정

infra/aws/terraform/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)