"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/common/input.sh" between
fogproject-1.5.8.tar.gz and fogproject-1.5.9.tar.gz

About: FOG is a Linux-based network computer cloning solution for Windows, Mac OSX and various Linux distributions that ties together a few open-source tools with a PHP-based web interface. FOG doesn’t use any boot disks, or CDs; everything is done via TFTP and PXE.

input.sh  (fogproject-1.5.8):input.sh  (fogproject-1.5.9)
skipping to change at line 254 skipping to change at line 254
[Yy]|[Yy][Ee][Ss]) [Yy]|[Yy][Ee][Ss])
installlang=1 installlang=1
;; ;;
*) *)
echo " Invalid input, please try again." echo " Invalid input, please try again."
;; ;;
esac esac
done done
[[ -z $snmysqlhost ]] && snmysqlhost='localhost' [[ -z $snmysqlhost ]] && snmysqlhost='localhost'
[[ -z $snmysqluser ]] && snmysqluser='fogmaster' [[ -z $snmysqluser ]] && snmysqluser='fogmaster'
while [[ -z $dohttps ]]; do
if [[ -z $autoaccept && -z $shttpproto ]]; then
echo
echo " Using encrypted connections is state of the art on the w
eb and we"
echo " encourage you to enable this for your FOG server. But us
ing HTTPS"
echo " has some implications within FOG, PXE and fog-client and
you want"
echo " to read https://wiki.fogproject.org/HTTPS before you dec
ide!"
echo -n " Would you like to enable secure HTTPS on your FOG ser
ver? [y/N] "
read dohttps
fi
[[ "$shttpproto" == "https" ]] && dohttps="yes"
case $dohttps in
[Nn]|[Nn][Oo]|"")
dohttps=0
httpproto="http"
;;
[Yy]|[Yy][Ee][Ss])
dohttps=1
httpproto="https"
;;
*)
echo " Invalid input, please try again."
dohttps=""
;;
esac
done
;; ;;
[Ss]) [Ss])
while [[ -z $snmysqlhost ]]; do while [[ -z $snmysqlhost ]]; do
echo echo
echo " What is the IP address or hostname of the FOG server running " echo " What is the IP address or hostname of the FOG server running "
echo " the fog database? This is typically the server that also " echo " the fog database? This is typically the server that also "
echo -n " runs the web server, dhcp, and tftp. IP or Hostname: " echo -n " runs the web server, dhcp, and tftp. IP or Hostname: "
read snmysqlhost read snmysqlhost
done done
strSuggestedSNUser='fogstorage' strSuggestedSNUser='fogstorage'
skipping to change at line 317 skipping to change at line 291
echo " This information is storage in the management portal under " echo " This information is storage in the management portal under "
echo " 'FOG Configuration' -> " echo " 'FOG Configuration' -> "
echo " 'FOG Settings' -> " echo " 'FOG Settings' -> "
echo " 'FOG Storage Nodes' -> " echo " 'FOG Storage Nodes' -> "
echo -n " 'FOG_STORAGENODE_MYSQLPASS'. Password: " echo -n " 'FOG_STORAGENODE_MYSQLPASS'. Password: "
read -r snmysqlpass read -r snmysqlpass
[[ -z $snmysqlpass ]] && echo "Invalid input, please try again." [[ -z $snmysqlpass ]] && echo "Invalid input, please try again."
done done
;; ;;
esac esac
while [[ -z $dohttps ]]; do
if [[ -z $autoaccept && -z $shttpproto ]]; then
echo
echo " Using encrypted connections is state of the art on the web and w
e"
echo " encourage you to enable this for your FOG server. But using HTTP
S"
echo " has some implications within FOG, PXE and fog-client and you wan
t"
echo " to read https://wiki.fogproject.org/HTTPS before you decide!"
echo -n " Would you like to enable secure HTTPS on your FOG server? [y/
N] "
read dohttps
fi
[[ "$shttpproto" == "https" ]] && dohttps="yes"
case $dohttps in
[Nn]|[Nn][Oo]|"")
dohttps=0
httpproto="http"
;;
[Yy]|[Yy][Ee][Ss])
dohttps=1
httpproto="https"
;;
*)
echo " Invalid input, please try again."
dohttps=""
;;
esac
done
 End of changes. 2 change blocks. 
31 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)