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, core123 has been updated
via f3d23ae0ff98f925f2120f60923ab591d7a3adc6 (commit)
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 f3d23ae0ff98f925f2120f60923ab591d7a3adc6
Author: Arne Fitzenreiter <arne_f(a)ipfire.org>
Date: Wed Aug 15 12:19:29 2018 +0200
core123: ship updated logs.cgi/ids.dat
Signed-off-by: Arne Fitzenreiter <arne_f(a)ipfire.org>
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:
config/rootfiles/core/123/filelists/files | 1 +
src/initscripts/helper/aws-setup | 14 ++++++++++++++
2 files changed, 15 insertions(+)
Difference in files:
diff --git a/config/rootfiles/core/123/filelists/files b/config/rootfiles/core/123/filelists/files
index a32f0a86f..9e5466ab5 100644
--- a/config/rootfiles/core/123/filelists/files
+++ b/config/rootfiles/core/123/filelists/files
@@ -7,6 +7,7 @@ etc/rc.d/rcsysinit.d/S74aws
etc/sysctl.conf
srv/web/ipfire/cgi-bin/ids.cgi
srv/web/ipfire/cgi-bin/index.cgi
+srv/web/ipfire/cgi-bin/logs.cgi/ids.dat
srv/web/ipfire/cgi-bin/ovpnmain.cgi
srv/web/ipfire/cgi-bin/proxy.cgi
srv/web/ipfire/cgi-bin/vpnmain.cgi
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