aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-05-10 08:53:39 +0300
committerMunyoki Kilyungi2025-05-10 08:53:39 +0300
commit41b6c49a908248eff1999e198dfe64f1f1f7036b (patch)
tree60a702b8ddff20af39d7b80cdcbe0c40a977f1ae
parent6f4d08757a4c67fd02e40a6e8d4abd44c7423d71 (diff)
downloadgn-machines-41b6c49a908248eff1999e198dfe64f1f1f7036b.tar.gz
Improve copy.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rwxr-xr-xgenenetwork-local-container.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/genenetwork-local-container.sh b/genenetwork-local-container.sh
index 34df22e..e805611 100755
--- a/genenetwork-local-container.sh
+++ b/genenetwork-local-container.sh
@@ -89,7 +89,16 @@ if ! command -v guix &>/dev/null; then
fi
# Check for gn-bioinformatics channel
-guix describe | grep gn-bioinformatics &> /dev/null && log "INFO" "guix guix-informatics $(guix describe | grep gn-bioinformatics | cut -d ' ' -f 4)" || (log "ERROR" "Please make sure your current profile has gn-bioinformatics" && exit 1)
+guix describe | grep gn-bioinformatics\
+ &> /dev/null && log "INFO" "guix guix-informatics $(guix describe | grep gn-bioinformatics | cut -d ' ' -f 4)" || \
+ (clear && guix describe &&
+ echo ""
+ log "ERROR" "Please make sure your current profile has gn-bioinformatics" &&
+ echo "" &&
+ echo "Refer to:" &&
+ echo " https://issues.genenetwork.org/topics/guix/guix-profiles" &&
+ echo "to help you set your profile" && echo "" &&
+ exit 1)
# Validate HOME is set
if [ -z "${HOME:-}" ]; then
@@ -539,7 +548,7 @@ run_beginner_setup_tutorial() {
echo "This step is similar to running:"
echo "./genenetwork-local-container.sh --init-sql"
echo ""
- echo "Make sure your container, if not, is running for this to work:"
+ echo "Make sure you have a running mysql instance for this to work"
echo ""
echo "sudo /usr/local/bin/genenetwork-local-container"
if prompt_yes_no "Would you like to set up the database now?"; then