all the last-minute changes before the workshop
This commit is contained in:
@@ -13,6 +13,10 @@ ip addr replace dev eth3 172.16.202.32/31
|
||||
|
||||
echo "nameserver 192.168.0.254" > /etc/resolv.conf
|
||||
|
||||
useradd -m keycollector
|
||||
mkdir -p /home/keycollector/.ssh/
|
||||
echo "restrict ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKpofQk36/HtJcTSHVqFY9f0iyliVnDRWKpPvlnS3v5F keycollect-identity" > /home/keycollector/.ssh/authorized_keys
|
||||
chown keycollector:keycollector /home/keycollector/.ssh/ -Rv
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Run the long pipeline in the background, but start it only after 60 s.
|
||||
@@ -20,8 +24,8 @@ echo "nameserver 192.168.0.254" > /etc/resolv.conf
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
(
|
||||
# wait 90 seconds first
|
||||
sleep 90
|
||||
# wait 180 seconds first
|
||||
sleep 180
|
||||
/usr/local/bin/online-users.sh
|
||||
) > /online-users.txt & # ← background the whole subshell
|
||||
|
||||
|
||||
Reference in New Issue
Block a user