TESTSERVER_MGMT_IP=192.168.178.49
TESTSERVER_MGMT_PASSWD_FILE=/etc/jenkins/pserver2.ipmi
-##TFTP_TARGET=/srv/tftp/liveboot
-##HTTP_TARGET=/var/www/liveboot/
-
#
# check if we have a LIVEBOOT_BUILD_NUMBER
echo "Fail, no LIVEBOOT_BUILD_NUMBER set."
exit 1
fi
+
#
# check if there is an image for it
#
fi
#
-# reconfigure PXE to make $TESTSERVER boot this image
+# create pending-approval link and rsync again
#
-###
-### needs ~liveboot@riserver:.ssh/authorized_keys configured like this
-### command="/bin/cp ${SSH_ORIGINAL_COMMAND#* }",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,from="192.168.178.17"
-### thanks to http://larstobi.blogspot.de/2011/01/restrict-ssh-access-to-one-command-but.html
-###
-#ssh liveboot@riserver cp -v $SOURCE_DIR/vmlinuz $TFTP_TARGET/pserver2_vmlinuz
-#ssh liveboot@riserver cp -v $SOURCE_DIR/initramfs.cpio.gz $TFTP_TARGET/pserver2_initramfs.cpio.gz
-#echo "Ok, copied vmlinuz and initramfs.cpio.gz from $SOURCE_DIR to riserver:$TFTP_TARGET/"
-#ssh liveboot@riserver cp -v $SOURCE_DIR/root.tar.xz $HTTP_TARGET/pserver2_root.tar.xz
-#echo "Ok, copied root.tar.xz from $SOURCE_DIR to riserver:$HTTP_TARGET/"
+cd /srv/mirror/liveboot
+ln -sfv $(basename $SOURCE_DIR) pending-approval
+echo "pending-approval link creating, pointing to $SOURCE_DIR"
+$(basename $0)/liveboot_rsync.sh
#
# reboot TESTSERVER
fi
echo
-#
-# create pending-approval link
-#
-cd /srv/mirror/liveboot
-ln -sfv $(basename $SOURCE_DIR) pending-approval
-echo "pending-approval link creating, pointing to $SOURCE_DIR"
-echo "will trigger liveboot_rsync job after this job is done."
#
# output announcement mail headers