Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sysop-bioinformatics
management_scripts
Commits
40dff4b9
Commit
40dff4b9
authored
Apr 27, 2021
by
Haarst, Jan van
Browse files
Add a splash of color.
parent
d0686412
Changes
1
Hide whitespace changes
Inline
Side-by-side
create_new_user.sh
View file @
40dff4b9
...
...
@@ -147,7 +147,7 @@ ADMIN_NAME=$(ad_id_to_name $SUDO_USER)
if
check_id_in_ad_group
$NEW_USER
$DN
then
echo
echo
$NEW_USER
already
in
AD group
$DN
echo
-e
"
\e
[31m
$NEW_USER
already in AD group
$DN
\0
33[0m"
else
add_to_ad_group
$NEW_USER
$DN
fi
...
...
@@ -157,7 +157,7 @@ for dir in /mnt/scratch/${NEW_USER} /mnt/LTR_userdata/${NEW_USER} /lustre/BIF/no
do
if
[
-d
$dir
]
then
echo
$dir
already exists :
echo
-e
"
\e
[31m
$dir
already exists :
\0
33[0m"
ls
-ld
$dir
else
mkdir
-p
--mode
=
700
--verbose
$dir
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment