Updated ldap.usr, vhost1.usr and ws.pm (Fedora 33 updates).
authorZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Wed, 28 Oct 2020 13:20:10 +0000 (14:20 +0100)
committerZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Wed, 28 Oct 2020 13:20:10 +0000 (14:20 +0100)
sources/ldap.usr/envvars
sources/ldap.usr/preinstall/01_backupldapdb.sh
sources/vhost1.usr/99_setupsystem.sh
sources/ws.pm/firstboot/10_certbot.sh

index f5ab4fad5eb3538f08cc72049e746b3322261f4c..0cacc9b96c7702c8072ab97aef2aa04ce0222083 100644 (file)
@@ -2,5 +2,5 @@ DISTRIBUTION=Fedora
 DISTRIBUTION_VERSION=33
 ROOT_PACKAGES="hostname initscripts iproute rootfiles systemd-udev"
 BASE_PACKAGES="NetworkManager iputils logrotate rsyslog tar vim-minimal"
-SPEC_PACKAGES="openssh-server openssh-clients openssh-ldap openssl sudo"
-SPEC_PACKAGES="$SPEC_PACKAGES authselect openldap-servers openldap-clients nss-pam-ldapd oddjob-mkhomedir pam_ssh passwd python3 sssd-ldap"
+SPEC_PACKAGES="openssh-server openssh-clients openssl sudo"
+SPEC_PACKAGES="$SPEC_PACKAGES authselect openldap-servers openldap-clients oddjob-mkhomedir pam_ssh passwd python3 sssd-ldap"
index 8c38c77a9b5ac398eee78075440eadbd3ede1ff9..715987422448192707ab36893211ccc11b33b413 100755 (executable)
@@ -2,17 +2,17 @@
 
 
 REAL_PATH=$(realpath $(dirname $0))
-CONTAINER_NAME=$1
-CONTAINER_ROOTFS=$2
-CONTAINER_SOURCE_PATH=$3
+ENV_FILE=$1
+source $ENV_FILE
 
 
+chmod 600 $REAL_PATH/user-lxcsetup-2020
 ssh -i $REAL_PATH/user-lxcsetup-2020 -l root ldap.usr.user.hu echo hello
 RC=$?
 if [ $RC -eq 0 ]
 then
     ssh -i $REAL_PATH/user-lxcsetup-2020 -l root ldap.usr.user.hu systemctl stop slapd.service
-    ssh -i $REAL_PATH/user-lxcsetup-2020 -l root ldap.usr.user.hu slapcat -n 2 >/tmp/data.ldif
+    ssh -i $REAL_PATH/user-lxcsetup-2020 -l root ldap.usr.user.hu "slapcat -n 2 >/tmp/data.ldif"
     scp -i $REAL_PATH/user-lxcsetup-2020 root@ldap.usr.user.hu:/tmp/data.ldif \
         $CONTAINER_SOURCE_PATH/firstboot/data.ldif
     ssh -i $REAL_PATH/user-lxcsetup-2020 -l root ldap.usr.user.hu systemctl start slapd.service
index e5d0facc8ce84acd7e2d7b8bd825141f7ec67b40..7178041023b030d47dc5155a21e236f9d16d1cc5 100755 (executable)
@@ -6,12 +6,16 @@ timedatectl set-timezone Europe/Budapest
 
 dnf install \
     chrony \
+    cronie \
     infiniband-diags \
+    ipmitool \
     logrotate \
     lxc \
     lxc-templates \
+    mailx \
     mercurial-py3 \
     opensm \
+    postfix \
     rdma-core \
     rsyslog \
     screen \
index b3ab464988421b962aba053563f714da0e54aae5..470a796070634f132dd2219b1768022f837a2e12 100755 (executable)
@@ -34,7 +34,7 @@ then
     done
     /usr/bin/cp \
         --archive \
-        /usr/lib/python3.8/site-packages/certbot_apache/_internal/tls_configs/current-options-ssl-apache.conf \
+        /usr/lib/python3.9/site-packages/certbot_apache/_internal/tls_configs/current-options-ssl-apache.conf \
         /etc/letsencrypt/options-ssl-apache.conf
     systemctl enable certbot-renew.timer
     systemctl start certbot-renew.timer