diff options
author | Daniil Baturin <daniil@baturin.org> | 2014-05-07 04:51:14 -0700 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2014-05-07 04:51:14 -0700 |
commit | 02c409c36bd2d204d90bf540cbbb87d6908d5801 (patch) | |
tree | b192dfe986c92a6b8a65ea86705bdb67ba937a7c | |
parent | 87803101a8636a19cc37b00059252971851f7354 (diff) | |
parent | caa6a529196c5c414bb4ca1365da329caf6131a9 (diff) | |
download | vyatta-cfg-system-02c409c36bd2d204d90bf540cbbb87d6908d5801.tar.gz vyatta-cfg-system-02c409c36bd2d204d90bf540cbbb87d6908d5801.zip |
Merge pull request #13 from hydrajump/aws-init-script-fix
Fix to enable ec2-fetch-ssh-public-key init script
-rwxr-xr-x | debian/vyatta-cfg-system.postinst.in | 8 | ||||
-rwxr-xr-x | scripts/install/install-image-existing | 6 |
2 files changed, 2 insertions, 12 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index 4a690fa8..fde99041 100755 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -211,14 +211,6 @@ done # add vyatta-config-reboot-params to start at boot up update-rc.d vyatta-config-reboot-params start 20 S -# Enable ec2-fetch-ssh-public-key init script -if [ -f /opt/vyatta/etc/config/.aws ]; then - update-rc.d ec2-fetch-ssh-public-key defaults - - # Remove temp. file from install-image-existing L50 - rm /opt/vyatta/etc/config/.aws -fi - # Local Variables: # mode: shell-script # sh-indentation: 4 diff --git a/scripts/install/install-image-existing b/scripts/install/install-image-existing index f8aef0ba..5c042d48 100755 --- a/scripts/install/install-image-existing +++ b/scripts/install/install-image-existing @@ -44,10 +44,8 @@ is_amazon_ec2_ami () { if [ -n "$ami_id" ]; then echo "Installing on VyOS AMI" - # Create a temporary file to provide conditional - # check for init.d config in - # /debian/vyatta-cfg-system.postinst.in L215 - touch ${INST_ROOT}${VYATTA_CFG_DIR}/.aws + # Create init script links for /etc/init.d/ec2-fetch-ssh-public-key + chroot $INST_ROOT update-rc.d ec2-fetch-ssh-public-key defaults &>/dev/null fi } |