Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RStudioAD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Dirk Sarpe
RStudioAD
Commits
5b0bafec
Commit
5b0bafec
authored
5 years ago
by
Dirk Sarpe
Browse files
Options
Downloads
Patches
Plain Diff
correct warnings from syntastic
parent
a7e22344
No related branches found
No related tags found
1 merge request
!1
integrate new version of Homesdir
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
homedirs.sh
+13
-13
13 additions, 13 deletions
homedirs.sh
with
13 additions
and
13 deletions
homedirs.sh
+
13
−
13
View file @
5b0bafec
...
@@ -26,26 +26,26 @@ fi
...
@@ -26,26 +26,26 @@ fi
unset
rusers
unset
rusers
rusers
=
"
$(
getent group
$rgroup
|
awk
-F
'[/:]'
'{print $4}'
)
"
rusers
=
"
$(
getent group
$rgroup
|
awk
-F
'[/:]'
'{print $4}'
)
"
rusers
=
"
$rusers
,
$(
getent group
$localrgroup
|
awk
-F
'[/:]'
'{print $4}'
)
"
rusers
=
"
$rusers
,
$(
getent group
$localrgroup
|
awk
-F
'[/:]'
'{print $4}'
)
"
IFS
=
$','
read
-a
ruserar
<<<
"
$rusers
"
IFS
=
$','
read
-r
-a
ruserar
<<<
"
$rusers
"
for
ruser
in
"
${
ruserar
[@]
}
"
for
ruser
in
"
${
ruserar
[@]
}
"
do
do
# create home directories
# create home directories
if
[
!
-d
$home$ruser
]
if
[
!
-d
"
$home$ruser
"
]
then
then
/sbin/mkhomedir_helper
$ruser
$umask
$skel
/sbin/mkhomedir_helper
"
$ruser
"
"
$umask
"
"
$skel
"
setfacl
-m
u:
$monitoringuser
:rx
$home$ruser
setfacl
-m
u:
$monitoringuser
:rx
"
$home$ruser
"
fi
fi
# symlink .rstudio directory to work storage
# symlink .rstudio directory to work storage
if
[
!
-d
$work$ruser
/
$rstudiodir
]
if
[
!
-d
"
$work$ruser
/
$rstudiodir
"
]
then
then
mkdir
-m
770
-p
$work$ruser
mkdir
-m
770
-p
"
$work$ruser
"
mkdir
-p
$work$ruser
/
$rstudiodir
mkdir
-p
"
$work$ruser
/
$rstudiodir
"
mkdir
-p
$home$ruser
/
$rstudiodir
mkdir
-p
"
$home$ruser
/
$rstudiodir
"
setfacl
-m
u:
$monitoringuser
:rx
$work$ruser
setfacl
-m
u:
"
$monitoringuser
"
:rx
"
$work$ruser
"
setfacl
-m
u:
$monitoringuser
:rx
$work$ruser
/
$rstudiodir
setfacl
-m
u:
"
$monitoringuser
"
:rx
"
$work$ruser
/
$rstudiodir
"
se
t
facl
-m
u:
$ruser
:rwx
$work$ruser
se
u
facl
-m
u:
"
$ruser
"
:rwx
"
$work$ruser
"
setfacl
-m
u:
$ruser
:rwx
$work$ruser
/
$rstudiodir
setfacl
-m
u:
"
$ruser
"
:rwx
"
$work$ruser
/
$rstudiodir
"
mount
--bind
$work$ruser
/
$rstudiodir
$home$ruser
/
$rstudiodir
mount
--bind
"
$work$ruser
/
$rstudiodir
"
"
$home$ruser
/
$rstudiodir
"
#ln -s $work$ruser/$rstudiodir $home$ruser/$rstudiodir
#ln -s $work$ruser/$rstudiodir $home$ruser/$rstudiodir
#chattr +i $home$ruser/$rstudiodir
#chattr +i $home$ruser/$rstudiodir
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment