optional_items_menu() { #additional options for initial syncs
local choices source_main_ip source_ip_usage ips_free unsetdedipcheck fixmatch
declare -a cmd options
cmd=(dialog --clear --backtitle "pullsync" --title "Optional Items" --separate-output --checklist "Select additional optional items for this sync. Sane options were selected based on your source and target setup:\n" 0 0 12)
options=( 1 "Comment out user crons during restore" on
2 "Restore sites to dedicated IP addresses" off
3 "Scan php files for malware during initial sync" on
4 "Run marill automated testing after initial sync" on
5 "Add MOTD line for in-progress migration" on
6 "Run WebPageTest Compare during initial sync" off
7 "Use --dbbackup=schema for pkgacct" off
8 "Run fixperms for migrated accounts" off
9 "Convert Roundcube MySQL to sqlite on source" off
[ "$fixmatch"-ge 1 ] && cmd[8]="${cmd[8]}\n(8) Some accounts have incorrect public_html permissions (you still need to turn this on if you want to run fixperms)"
echo -e "Letter grades are: First Byte Time, Keep-alive, Server Gzip, Image Compression, Browser Cache, CDN use.\nLine format is Median Load Time, Median TTFB, Letter Grades."| tee -a "$dir/wptresults.txt"