PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` #!/bin/bash if [[ $1 == "" ]] ; then echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-" echo "Welcome to the report part of the script." echo "Possible options are:" echo "--------------------" echo -e "\e[35m\e[1m--------Auto report--------\e[0m" echo -e "\e[33m----------\e[0m" echo -e "\e[32mmig \e[0m" - This will generate detailed migration report based on your answer echo -e "\e[31mexample: 112r mig \e[0m" echo -e "\e[33m----------\e[0m" echo -e "\e[32mreport \e[0m" - Pray generator...when you pray..please describe THE THINGS echo -e "\e[31mexample: 112r report \e[0m" echo -e "\e[33m----------\e[0m" echo "Have a nice work" echo "" fi #112 report part if [[ $1 == "mig" ]] ; then echo "Type username ONLY ,followed by [ENTER]:" read sourceacc echo "Type source server, if you leave it empty , HOSTNAME will be used" read sourcesrv if [ -z "${sourcesrv}" ]; then echo "VAR is unset or set to the empty string" HNAME=$HOSTNAME else HNAME=$sourcesrv fi echo "Type Destination server in this notation , uk01 = uk1 , s950.tmd.cloud = s950 " read destisrv echo "Do you have some notes" read notes echo "Waring you will send the following mail to the admins" echo "" echo "============================================" echo "$sourceacc $HNAME $destisrv" echo "" echo "notest are: $notes" echo "============================================" echo "" echo "do you want to send this message as a ticket to OTRS system ? y/N" read DO_THAT if [ "${DO_THAT}" = "y" ]; then echo "$notes" | mail -s "Migration $sourceacc $HNAME $destisrv" otrs@tmdhosting.net else echo "Please start all over again :)" fi fi #112 report part if [[ $1 == "report" ]] ; then echo "============================================" echo "Hello there.May i ask with whom i am speaking" echo "And i realy hope that you wont type YES,y,da, here...I NEED YOUR NAME" read whosend if [ -z "${whosend}" ]; then echo "Type your name or go to hell" exit else SENDERNAME=$whosend fi echo "============================================" echo "Now $SENDERNAME, tell me my child what do to want to ask those of whom we do not speak ?" read probdesc if [ -z "${probdesc}" ]; then echo "Sending an empty pray is never a good idea ." exit else PROBLEMDESC=$probdesc fi echo "============================================" echo "Do you feel lucky today ?" read luckynes echo "============================================" echo "Now , $SENDERNAME you will ask those of whom we do not speak" echo "" echo "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-" echo "Prayer: $SENDERNAME " echo "" echo "Pray: $PROBLEMDESC" echo "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-" echo "" echo "Is that bastard lucky enough ?: $luckynes " echo "~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-" echo "do you want to send this message to...them ?y/N" read DO_THAT if [ "${DO_THAT}" = "y" ]; then echo -e "$SENDERNAME \n Description: $PROBLEMDESC" | mail -s "[SRV-REPORT] $HOSTNAME " otrs@tmdhosting.net else echo "Please start all over again :)" fi fi