* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 0ed9b77099321c4addd0b91121194d90322242ed
@ 2018-08-15 9:12 Michael Tremer
0 siblings, 0 replies; only message in thread
From: Michael Tremer @ 2018-08-15 9:12 UTC (permalink / raw)
To: ipfire-scm
[-- Attachment #1: Type: text/plain, Size: 2534 bytes --]
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via 0ed9b77099321c4addd0b91121194d90322242ed (commit)
via 647ca912a2addac9ac32d6f91ceeb00c7c184897 (commit)
from 1e1806adce3e82b500e6ed6aed6508f0c63358d5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0ed9b77099321c4addd0b91121194d90322242ed
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Wed Aug 15 10:11:08 2018 +0100
aws: Install all available updates first
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
commit 647ca912a2addac9ac32d6f91ceeb00c7c184897
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Wed Aug 15 10:10:13 2018 +0100
aws: Setup DNS during init phase
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
-----------------------------------------------------------------------
Summary of changes:
src/initscripts/helper/aws-setup | 14 ++++++++++++++
1 file changed, 14 insertions(+)
Difference in files:
diff --git a/src/initscripts/helper/aws-setup b/src/initscripts/helper/aws-setup
index 955583c02..792a7d5a5 100644
--- a/src/initscripts/helper/aws-setup
+++ b/src/initscripts/helper/aws-setup
@@ -111,6 +111,9 @@ import_aws_configuration() {
# Download the user-data script only on the first boot
if [ ! -e "/var/ipfire/main/firstsetup_ok" ]; then
+ # Install all available updates
+ pakfire update && pakfire upgrade -y
+
# Download user-data
local user_data="$(get user-data)"
@@ -289,11 +292,22 @@ case "${reason}" in
# Add the default route
ip route add default via "${new_routers}"
+ # Setup DNS
+ for domain_name_server in ${new_domain_name_servers}; do
+ echo "nameserver ${domain_name_server}"
+ done > /etc/resolv.conf
+
+ # The system is online now
+ touch /var/ipfire/red/active
+
# Import AWS configuration
import_aws_configuration
;;
EXPIRE|FAIL|RELEASE|STOP)
+ # The system is no longer online
+ rm -f /var/ipfire/red/active
+
# Remove all IP addresses
ip addr flush dev "${interface}"
;;
hooks/post-receive
--
IPFire 2.x development tree
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-15 9:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-15 9:12 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 0ed9b77099321c4addd0b91121194d90322242ed Michael Tremer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox