Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 99dc0127 authored by Kostis ANAGNOSTOPOULOS's avatar Kostis ANAGNOSTOPOULOS
Browse files

refact(setup) reflect actual actions order >

put conda_init last, the lat one to execute on the 1st run.
parent aa440727
No related branches found
No related tags found
No related merge requests found
......@@ -175,6 +175,24 @@ function upd20_git_aliases {
fi
}
function upd20_ipython_ustore_vars {
if [ -f "$ipython_startup_ustore_vars" ]; then
_log "already ok"
else
_log -n "updating..."
mkdir -p $(dirname "$ipython_startup_ustore_vars")
cat > "$ipython_startup_ustore_vars" <<- EOF
## BDAP Storage locations
PSTORE="/eos/jeodpp/data/projects/LEGENT"
USTORE="/eos/jeodpp/home/users/${USER}"
UTRANS="/eos/jeodpp/home/users/${USER}/transfer"
PTRANS="/eos/jeodpp/data/projects/LEGENT/transfer"
EOF
echo "UPDATED"
fi
}
function upd40_bashrc_conda_init {
if _mute grep ">>> conda initialize >>>" ~/.bashrc; then
_log 'already ok; delete ">>> conda initialize >>>" section from `~/.bashrc` to re-run.'
......@@ -199,24 +217,6 @@ function upd40_bashrc_conda_init {
fi
}
function upd20_ipython_ustore_vars {
if [ -f "$ipython_startup_ustore_vars" ]; then
_log "already ok"
else
_log -n "updating..."
mkdir -p $(dirname "$ipython_startup_ustore_vars")
cat > "$ipython_startup_ustore_vars" <<- EOF
## BDAP Storage locations
PSTORE="/eos/jeodpp/data/projects/LEGENT"
USTORE="/eos/jeodpp/home/users/${USER}"
UTRANS="/eos/jeodpp/home/users/${USER}/transfer"
PTRANS="/eos/jeodpp/data/projects/LEGENT/transfer"
EOF
echo "UPDATED"
fi
}
## This function must be the 1st to run after all `upd_xxx` actions.
# The last command of this action, activating conda-env,
# will fail if not re-logged in after `conda init bash`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment