#------------------------------------------------------------------------------#
### OWNCLOUD SUBMENU

owncloud.submenu ()
{
while [ "$choice" != "a,h,i,b,d" ]
do
        echo -e "${sep}"
        echo -e "${fin} OwnCloud Options${nc}"
        echo -e "${sep}"
        echo -e "${qry} Choose one:${nc}"
        echo " "
        echo -e "${fin}   1)${msg} Install${nc}"
        echo -e "${ca}   2)${ca} Update${nc}"
        echo -e "${ca}   3)${ca} Backup${nc}"
        echo " "
        echo -e "${fin}   4)${msg} Fix Known Errors${nc}"
        echo -e "${fin}   5)${msg} Other${nc}"
        echo " "
        echo -e "${inf}  a) About OwnCloud${nc}"
        echo -e "${inf}  i) More Info / How-To's${nc}"
        echo -e "${inf}  h) Get Help${nc}"
        echo " "
        echo -e "${emp}  b) Back${nc} |${emp} m) Main Menu"

        echo -e "${ssep}"
        read -r -p "     Your choice: " choice
        echo -e "${ssep}"
        echo " "

        case $choice in
            '1') 	clear; echo -e "${inf} Installing..${nc}" ; echo " "
                	. $scriptPath/"Self Hosting"/Cloud/Owncloud/install.sh ;;
            #'2') 	clear; echo -e "${inf} Running Update..${nc}" ; echo " "
            #    	. $scriptPath/"Self Hosting"/Cloud/Owncloud/update.sh ;;
            #'3')	clear; echo -e "${inf} Backup..${nc}" ; echo " "
            #    	. $scriptPath/"Self Hosting"/Cloud/Owncloud/backup.sh ;;
					
            '4')	. $scriptPath/"Self Hosting"/Cloud/errorfix.sh ;;
            '5')	. $scriptPath/"Self Hosting"/Cloud/other.sh ;;
			
            'a')	. $scriptPath/"Self Hosting"/Cloud/Owncloud/about.sh ;;
            'i')	. $scriptPath/"Self Hosting"/Cloud/Owncloud/info.sh ;;
            'h')	clear; (. $scriptPath/gethelp.sh);;
			
            'b') 	clear; return ;;
			'm') 	. $scriptPath/mainmenu.sh ;;
					
            *)		echo -e "${alt}        Invalid choice, please try again${nc}" ; echo " " ;;
			
        esac
done
}

owncloud.submenu