summaryrefslogtreecommitdiff
path: root/debian/vyatta-cfg-system.postinst.in
diff options
context:
space:
mode:
authorhydrajump <wave@hydrajump.com>2014-05-03 03:53:36 +0200
committerhydrajump <wave@hydrajump.com>2014-05-03 03:53:36 +0200
commit01bfe09a152f2dc7b2c14d5ecebf9aa5b0a9c687 (patch)
tree9b66abd1482ea9a395004efe607bead00145d077 /debian/vyatta-cfg-system.postinst.in
parent803a08517eef23f085961b046787b785a8832dc9 (diff)
downloadvyatta-cfg-system-01bfe09a152f2dc7b2c14d5ecebf9aa5b0a9c687.tar.gz
vyatta-cfg-system-01bfe09a152f2dc7b2c14d5ecebf9aa5b0a9c687.zip
Fix AWS EC2 AMI support
- grub.cfg is now correctly modified when installing on a VyOS AMI - ec2-fetch-ssh-public-key init script still needs to be activated if installing on a VyOS AMI. This is an outstanding issue which needs to be addressed. See debian/vyatta-cfg-system.postinst.in.
Diffstat (limited to 'debian/vyatta-cfg-system.postinst.in')
-rwxr-xr-xdebian/vyatta-cfg-system.postinst.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index a89ef711..4a690fa8 100755
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -212,11 +212,11 @@ done
update-rc.d vyatta-config-reboot-params start 20 S
# Enable ec2-fetch-ssh-public-key init script
-if [ -f "$sysconfdir"/config/.aws ]; then
- insserv ec2-fetch-ssh-public-key --default
+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 "$sysconfdir"/config/.aws
+ rm /opt/vyatta/etc/config/.aws
fi
# Local Variables: