21
21
22
22
# SCRIPT METADATA
23
23
readonly dir=$( cd -P -- " $( dirname -- " $0 " ) " && pwd -P)
24
- readonly REL_NAME=" 6.1.1 -RC1"
25
- readonly REL_NUM=611
24
+ readonly REL_NAME=" 6.2.0 -RC1"
25
+ readonly REL_NUM=620
26
26
27
27
function _init_printf_variables()
28
28
{
@@ -301,7 +301,7 @@ function _init_script_variables()
301
301
readonly SOURCES_FILE_DIR=/etc/apt/sources.list.d
302
302
303
303
# Ping URL
304
- readonly PING_URL=" www.google .com"
304
+ readonly PING_URL=" http://connectivitycheck.gstatic .com/generate_204 "
305
305
306
306
307
307
# -------------------------- Release codenames --------------------------------------
@@ -311,7 +311,7 @@ function _init_script_variables()
311
311
# 404 is a placeholder which is set when there are
312
312
# no suitable releases which can use this feature or
313
313
# the release is unknown or too early in developement.
314
- readonly codename_upcoming_release=" 404 "
314
+ readonly codename_upcoming_release=" hirsute "
315
315
316
316
readonly codename_current_lts=" focal"
317
317
readonly codename_previous_lts=" bionic"
@@ -572,7 +572,13 @@ function _fix_ubuntu_derivatives()
572
572
readonly enable_ppa=" true" ;
573
573
readonly python2_disabled=" true" ;
574
574
readonly distro_name=" ubuntu" ;
575
- _log_warn " This is Ubuntu 20.10 Groovy Gorilla"
575
+ _log_inform " Release is Ubuntu 20.10 Groovy Gorilla"
576
+ ;;
577
+ hirsute ) readonly bool_config_partner_repo=" true" ;
578
+ readonly enable_ppa=" true" ;
579
+ readonly python2_disabled=" true" ;
580
+ readonly distro_name=" ubuntu" ;
581
+ _log_warn " Release is Ubuntu 21.04 Hirsute Hippo (Unstable!!)"
576
582
;;
577
583
stretch | jessie | buster ) bool_is_debian=" true" ;
578
584
readonly distro_name=" debian" ;
@@ -607,7 +613,7 @@ function _test_internet_connection ()
607
613
{
608
614
# Function to check internet connection
609
615
_log_info " Checking connectivity"
610
- if wget --tries=5 --timeout=2 " $PING_URL " -O /tmp/ae/testinternet & > /dev/null 2>&1 ; then
616
+ if wget --tries=2 --timeout=10 " $PING_URL " -O /tmp/ae/testinternet & > /dev/null 2>&1 ; then
611
617
rm -f /tmp/ae/testinternet
612
618
_log_success " Connected!"
613
619
else
@@ -860,6 +866,8 @@ function _set_yaml_config()
860
866
861
867
_check_bool " add_gh_repo" " ${config__add_repo__github[0]} "
862
868
869
+ _check_bool " add_hashicorp_repo" " ${config__add_repo__hashicorp[0]} "
870
+
863
871
864
872
# Other Script Flags
865
873
# ################################################################################
@@ -1427,15 +1435,30 @@ function add_repositories()
1427
1435
# Github CLI
1428
1436
# gh
1429
1437
1430
- if [ " $add_gh_repo " == " true" ]; then
1431
- _log_info " GitHub CLI(gh)"
1438
+ if [ " $add_gh_repo " == " true" ]; then
1439
+ _log_info " GitHub CLI(gh)"
1440
+ _log_debug " Adding Key to trusted GPG keys directory"
1441
+ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C99B11DEB97541F0 | & _log_trace " ${_phase_apt_key} " \
1442
+ || _log_error " Adding Github CLI keys failed"
1443
+ echo " deb https://cli.github.com/packages ${code_name} main #GitHub-CLI" > ${SOURCES_FILE_DIR} /github-cli.list
1444
+ else
1445
+ _log_debug " Skipped GitHub CLI(gh)."
1446
+ fi
1447
+
1448
+ # Hashicorp
1449
+ if [ " $add_hashicorp_repo " == " true" ]; then
1450
+ if [ " $ARCH " == " amd64" ]; then
1451
+ _log_info " Hashicorp APT repository"
1432
1452
_log_debug " Adding Key to trusted GPG keys directory"
1433
- apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C99B11DEB97541F0 | & _log_trace " ${_phase_apt_key} " \
1434
- || _log_error " Adding Github CLI keys failed"
1435
- echo " deb https://cli.github. com/packages ${code_name} main #GitHub-CLI " > ${SOURCES_FILE_DIR} /github-cli .list
1453
+ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys DA418C88A3219F7B | & _log_trace " ${_phase_apt_key} " \
1454
+ || _log_error " Adding Hashicorp GPG keys failed"
1455
+ echo " deb [arch=amd64] https://apt.releases.hashicorp. com ${code_name} main#Hashicorp-Packages " > ${SOURCES_FILE_DIR} /hashicorp .list
1436
1456
else
1437
- _log_debug " Skipped GitHub CLI(gh). "
1457
+ _log_error " Hashicorp repositories are not supported on this architecture[ $ARCH ]! "
1438
1458
fi
1459
+ else
1460
+ _log_debug " Skipped adding Hashicorp repos"
1461
+ fi
1439
1462
1440
1463
1441
1464
# ROS
@@ -2255,17 +2278,19 @@ function _process_menu()
2255
2278
__menu_info_add_repo="
2256
2279
Settings for additional repositories is set as follows.
2257
2280
-------------------------------------------------------
2258
- Google Chrome, Google Earth : $add_google_repo
2259
- Google Cloud SDK : $add_googlecloud_repo
2260
- GCS-Fuse : $add_gcsfuse_repo
2261
- VS Code : $add_vscode_repo
2262
- Docker Community Edition : $add_docker_repo
2263
- Insync : $add_insync_repo
2264
- Skype : $add_skype_repo
2265
- Signal Desktop : $add_signal_repo
2266
- Mendeley : $add_mendeley_repo
2267
- ROS : $add_ros_repo
2268
- Duo Security for Unix : $add_duo_repo
2281
+ Google Chrome & Google Earth : $add_google_repo
2282
+ Google Cloud SDK : $add_googlecloud_repo
2283
+ GCS-Fuse : $add_gcsfuse_repo
2284
+ Visual Studio Code : $add_vscode_repo
2285
+ Docker Community Edition : $add_docker_repo
2286
+ Insync : $add_insync_repo
2287
+ Skype for Linux : $add_skype_repo
2288
+ Signal for Desktop : $add_signal_repo
2289
+ Mendeley : $add_mendeley_repo
2290
+ ROS (Robot Operating System) : $add_ros_repo
2291
+ Duo Security for Unix : $add_duo_repo
2292
+ GitHub CLI (gh) : $add_gh_repo
2293
+ Hashicorp Packages : $add_hashicorp_repo
2269
2294
2270
2295
Proceed with this action?
2271
2296
"
@@ -2554,8 +2579,8 @@ Usage: ${GREEN} [sudo] ./${SCRIPT} ${YELLOW} [options]${NC}
2554
2579
${YELLOW}
2555
2580
Non-Action options (can be run as non-root user)
2556
2581
-------------------------------------------------${NC}
2557
- [-v --version] Display version info
2558
- [-h --help] Display this help message
2582
+ [-v --version] Display version info
2583
+ [-h --help] Display this help message
2559
2584
${YELLOW}
2560
2585
Configuration Options
2561
2586
-------------------------------------------------${NC}
@@ -2582,13 +2607,14 @@ Other Options
2582
2607
-------------------------------------------------${NC}
2583
2608
[-E | --skip-env-checks] Skip some env checks
2584
2609
[-V | --skip-version-check] Skip checking for latest version
2585
- [-A --autopilot] Enables AUTOPILOT mode(No Prompts)
2610
+ [-A | --autopilot] Enables AUTOPILOT mode(No Prompts)
2586
2611
${GREEN}
2587
- Links & License
2612
+ Documentation, License and Version Info
2588
2613
-------------------------------------------------${NC}
2614
+ Version : ${ORANGE}${REL_NAME}${NC}
2589
2615
GitHub : ${BLUE} https://git.io/Jv08V${NC}
2590
2616
Documentation : ${BLUE} https://ae.prasadt.com${NC}
2591
- * This script is licensed under GPLv3.
2617
+ License : ${ORANGE} GPLv3${NC}
2592
2618
-------------------------------------------------
2593
2619
EOF
2594
2620
}
@@ -2745,20 +2771,11 @@ function main()
2745
2771
# Did I tell you that I need to call My friends over internet?
2746
2772
_test_internet_connection;
2747
2773
2748
- # Checks CI & Containers If running on EC2/GCP/Azure/DO
2749
- _ci_cloud_and_container_checks;
2750
-
2751
- # Take care of Mint and other distros
2752
- _fix_ubuntu_derivatives;
2753
-
2754
-
2755
2774
_log_stage " Check if config is defined"
2756
2775
2757
2776
# Handle Remote YAML
2758
2777
_log_var " bool_local_config_file" " ${bool_local_config_file} "
2759
2778
_log_var " local_config_file_path" " ${local_config_file_path} "
2760
- _log_var " bool_custom_version_file" " ${bool_custom_version_file} "
2761
- _log_var " custom_version_file" " ${custom_version_file} "
2762
2779
_log_var " bool_remote_yaml" " ${bool_remote_yaml} "
2763
2780
_log_var " url_remote_yaml" " ${url_remote_yaml} "
2764
2781
@@ -2778,7 +2795,15 @@ function main()
2778
2795
_log_and_exit " Custom version info file you have specified is not found or not accessible" " 36"
2779
2796
fi
2780
2797
2798
+ # Checks CI & Containers If running on EC2/GCP/Azure/DO
2799
+ _ci_cloud_and_container_checks;
2800
+
2801
+ # Take care of Mint and other distros
2802
+ _fix_ubuntu_derivatives;
2803
+
2781
2804
# Get Remote Config File/s, check version & configure
2805
+ _log_var " bool_custom_version_file" " ${bool_custom_version_file} "
2806
+ _log_var " custom_version_file" " ${custom_version_file} "
2782
2807
_version_checks;
2783
2808
2784
2809
_set_yaml_config;
0 commit comments