comparison cc.def @ 8:4b78177439c3

move from work to epccfs on Cirrus
author Henry S Thompson <ht@inf.ed.ac.uk>
date Sun, 11 Oct 2026 23:19:02 +0100
parents c7fa30d1f666
children 53ef1fd47ba2
comparison
equal deleted inserted replaced
7:c7fa30d1f666 8:4b78177439c3
88 cpanm File::Rename 88 cpanm File::Rename
89 89
90 unset DEBIAN_FRONTEND PIP_BREAK_SYSTEM_PACKAGES 90 unset DEBIAN_FRONTEND PIP_BREAK_SYSTEM_PACKAGES
91 91
92 sed '8i\ 92 sed '8i\
93 if [ "$WSHARED" ]\ 93 if [ "$SHARED" ]\
94 then\ 94 then\
95 PATH="$WSHARED/bin:$PATH"\ 95 PATH="$SHARED/bin:$PATH"\
96 fi\ 96 fi\
97 ' -i /etc/profile 97 ' -i /etc/profile
98 98
99 # REMEMBER to check cc/etc/profile has $WSHARED/bin in front of PATH 99 # REMEMBER to check cc/etc/profile has $SHARED/bin in front of PATH
100 100
101 %environment 101 %environment
102 export WSHARED=/work/dc007/dc007/shared 102 export work=epccfs
103 export HOME=/work/dc007/dc007/$(whoami) 103 export SHARED=/$(work)/dc007/dc007/shared
104 export HOME=/$(work)/dc007/dc007/$(whoami)
104 export SINGULARITY_SHELL=/usr/bin/bash 105 export SINGULARITY_SHELL=/usr/bin/bash
105 export LESSOPEN="| /usr/bin/lesspipe %s"; 106 export LESSOPEN="| /usr/bin/lesspipe %s";
106 export LESSCLOSE="/usr/bin/lesspipe %s %s"; 107 export LESSCLOSE="/usr/bin/lesspipe %s %s";
107 export SS='$SING' 108 export SS='$SING'
108 export SING=sing 109 export SING=sing
113 fi 114 fi
114 115
115 %runscript 116 %runscript
116 #!/bin/bash 117 #!/bin/bash
117 118
118 if [ -f $WSHARED/.bash_extras ] 119 if [ -f $SHARED/.bash_extras ]
119 then 120 then
120 . $WSHARED/.bash_extras 121 . $SHARED/.bash_extras
121 fi 122 fi
122 123
123 if [ ! -r $HOME ] 124 if [ ! -r $HOME ]
124 then 125 then
125 export HOME=/work/dc007/shared/guest 126 export HOME=/$(work)/dc007/shared/guest
126 export USER=guest 127 export USER=guest
127 fi 128 fi
128 129
129 cd $HOME 130 cd $HOME
130 131