Skip to content

Commit b62cb02

Browse files
committed
fix: cronie 설치 추가
1 parent 8991a9e commit b62cb02

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)