From: Zoltán Felleg Date: Wed, 26 Apr 2023 19:16:25 +0000 (+0200) Subject: Updated wiki.in (updated to Fedora 38). X-Git-Url: http://git.useribm.hu/?a=commitdiff_plain;h=25c6cb69232d2089a7c54f684822aa03059cea3a;p=user-lxc.git Updated wiki.in (updated to Fedora 38). --- diff --git a/sources/wiki.in/c3d/firstboot/scripts/01_setupnetworking.sh b/sources/wiki.in/c3d/firstboot/scripts/01_setupnetworking.sh index 3d6d32f..6c7188c 100755 --- a/sources/wiki.in/c3d/firstboot/scripts/01_setupnetworking.sh +++ b/sources/wiki.in/c3d/firstboot/scripts/01_setupnetworking.sh @@ -14,6 +14,10 @@ do then exit 1 fi + if [ $CYCLES_WAITED -eq 0 ] + then + echo -n "Waiting for NetworkManager" + fi echo -n . sleep 1 CYCLES_WAITED=$(( $CYCLES_WAITED + 1 )) @@ -22,17 +26,21 @@ do done [ $CYCLES_WAITED -gt 0 ] && echo -# wait for one/the network connection to come up +# wait for the two network connections to come up CONNECTION_DEVICES_UP=$(nmcli --terse connection show \ | grep --invert-match ':$' | wc -l) CYCLES_WAITED=0 -while [ $CONNECTION_DEVICES_UP -lt 1 ] +while [ $CONNECTION_DEVICES_UP -lt 2 ] do if [ $CYCLES_WAITED -ge 10 ] then nmcli connection show exit 1 fi + if [ $CYCLES_WAITED -eq 0 ] + then + echo -n "Waiting for the network connection" + fi echo -n . sleep 1 CYCLES_WAITED=$(( $CYCLES_WAITED + 1 )) @@ -42,18 +50,23 @@ done [ $CYCLES_WAITED -gt 0 ] && echo CONNECTIONS=$(nmcli --terse connection show | wc -l) -if [ $CONNECTIONS -ne 1 ] +if [ $CONNECTIONS -ne 2 ] then - echo "Number of connections: $CONNECTIONS" >&2 + echo "Number of connections: $CONNECTIONS instead of 2" >&2 exit 1 fi -CONNECTION_LINE=$(nmcli --terse connection show) +CONNECTION_LINE=$(nmcli --terse connection show | grep ':eth0$') CONNECTION_UUID=$(echo $CONNECTION_LINE | cut -f 2 -d ':') CONNECTION_DEVICE=$(echo $CONNECTION_LINE | cut -f 4 -d ':') nmcli connection delete uuid "$CONNECTION_UUID" +# ipv6.addresses "2a02:d400:0000:f268:000c:18ff:fe03:6def/64" \ +# ipv6.dns "2a02:d400:0000:f268:000c:18ff:fe03:6d9f, 2a02:d400:0000:f268:000c:18ff:fe03:5c9f" \ +# ipv6.dns-search "in.useribm.hu" \ +# ipv6.gateway "2a02:d400:0000:f268:000c:18ff:fe03:6dfe" \ +# ipv6.method "manual" \ nmcli connection add \ connection.autoconnect yes \ connection.id internal \ @@ -64,11 +77,10 @@ nmcli connection add \ ipv4.dns-search "in.useribm.hu" \ ipv4.gateway "10.228.109.254" \ ipv4.method "manual" \ - ipv6.addresses "2a02:d400:0000:f268:000c:18ff:fe03:6def/64" \ - ipv6.dns "2a02:d400:0000:f268:000c:18ff:fe03:6d9f, 2a02:d400:0000:f268:000c:18ff:fe03:5c9f" \ - ipv6.dns-search "in.useribm.hu" \ - ipv6.gateway "2a02:d400:0000:f268:000c:18ff:fe03:6dfe" \ - ipv6.method "manual" \ + ipv6.method "disabled" \ save yes nmcli connection show + +hostnamectl hostname sns.in.useribm.hu +hostnamectl diff --git a/sources/wiki.in/envvars b/sources/wiki.in/envvars index 48a1b99..16b0dc3 100644 --- a/sources/wiki.in/envvars +++ b/sources/wiki.in/envvars @@ -1,3 +1,7 @@ DISTRIBUTION=Fedora -DISTRIBUTION_VERSION=37 -SPEC_PACKAGES="dokuwiki httpd php php-fpm php-ldap" +DISTRIBUTION_VERSION=38 +SPEC_PACKAGES="dokuwiki \ + httpd \ + php \ + php-fpm \ + php-ldap"