Skip to content

Commit 9d24658

Browse files
authored
Merge pull request #140 from YAPP-Github/feat/PRODUCT-225
[Fix] cronie 설치 추가
2 parents 7467903 + b62cb02 commit 9d24658

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

terraform/dev/scripts/user-data.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ echo '/swapfile none swap sw 0 0' >> /etc/fstab
1212
aws s3 cp s3://eatda-storage-dev/scripts/app-backup-dev-logs.sh /home/ec2-user/logs/eatda/app-backup-dev-logs.sh
1313
chmod +x /home/ec2-user/logs/eatda/app-backup-dev-logs.sh
1414

15+
yum install -y cronie
16+
systemctl enable crond
17+
systemctl start crond
18+
1519
(crontab -l 2>/dev/null; echo "0 0 * * 0 /home/ec2-user/logs/eatda/app-backup-dev-logs.sh >> /var/log/app-backup.log 2>&1") | crontab -

0 commit comments

Comments
 (0)