From 355ac6332d195acf80515c9149d582009081dacd Mon Sep 17 00:00:00 2001 From: Krish Moodbidri <krish94@uab.edu> Date: Thu, 11 Aug 2022 15:37:12 -0500 Subject: [PATCH] moved script to template dir --- template/script.sh.erb | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) mode change 100755 => 100644 template/script.sh.erb diff --git a/template/script.sh.erb b/template/script.sh.erb old mode 100755 new mode 100644 index 718951c..54c185d --- a/template/script.sh.erb +++ b/template/script.sh.erb @@ -1,29 +1,13 @@ -#!/usr/bin/env bash - -# Benchmark info -echo "TIMING - Starting main script at: $(date)" +#!/bin/bash -l # Set working directory to home directory cd "${HOME}" - +module reset # # Start Jupyter Notebook Server # - -<%- unless context.modules.blank? -%> -# Purge the module environment to avoid conflicts -module purge - -# Load the require modules -module load <%= context.modules %> - -# List loaded modules -module list -<%- end -%> - -# Benchmark info -echo "TIMING - Starting jupyter at: $(date)" - +module load Anaconda3 +<%= context.custom_environment %> +unset XDG_RUNTIME_DIR # Launch the Jupyter Notebook Server -set -x jupyter notebook --config="${CONFIG_FILE}" <%= context.extra_jupyter_args %> -- GitLab