Sha256: 040687a4e4e092e2acb6bcb686b20ac59b8eda03bc7703df2817947c09450a8a
Contents?: true
Size: 349 Bytes
Versions: 17
Compression:
Stored size: 349 Bytes
Contents
#!/bin/bash -eux function schedule_termination() { chmod +x /etc/rc.d/rc.local echo "/opt/aws-ec2/auto_terminate.sh after_ami >> /var/log/auto-terminate.log 2>&1" >> /etc/rc.d/rc.local } function unschedule_termination() { grep -v auto_terminate.sh /etc/rc.d/rc.local > /etc/rc.d/rc.local.tmp mv /etc/rc.d/rc.local.tmp /etc/rc.d/rc.local }
Version data entries
17 entries across 17 versions & 1 rubygems