Merge pull request #154 from m0duspwnens/master

whiptail size adjustments. fix menus that couldn't be cancelled out of. add path for source so setup can be called from anywhere
This commit is contained in:
Mike Reeves
2019-12-08 19:03:36 -05:00
committed by GitHub
3 changed files with 148 additions and 93 deletions

View File

@@ -16,8 +16,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Source the other pieces of the setup
source functions.sh
source whiptail.sh
SCRIPTDIR=$(dirname "$0")
source $SCRIPTDIR/functions.sh
source $SCRIPTDIR/whiptail.sh
# See if this is an ISO install
OPTIONS=$1
@@ -42,6 +43,7 @@ SETUPLOG="/root/sosetup.log"
# Reset the Install Log
date -u >$SETUPLOG 2>&1
echo "stty size is: $(stty size)" >> $SETUPLOG 2>&1
# Check for prerequisites
got_root
@@ -53,7 +55,8 @@ if [ $OS == ubuntu ]; then
fi
# Question Time
if (whiptail_you_sure); then
echo "Asking user if they are sure they want to proceed" >> $SETUPLOG 2>&1
if (whiptail_you_sure) ; then
# Create a temp dir to get started
install_prep
@@ -654,5 +657,6 @@ if (whiptail_you_sure); then
fi
else
exit
echo "User not sure. Cancelling setup.">> $SETUPLOG 2>&1
whiptail_cancel
fi