Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Primtux-Eole
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Grenoble
Primtux-Eole
Commits
69f2c537
Unverified
Commit
69f2c537
authored
Apr 05, 2019
by
David Beniamine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Harder fix for #27
parent
869a3f8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
mount_shares.service
mount_shares.service
+2
-0
mount_shares.sh
mount_shares.sh
+8
-0
No files found.
mount_shares.service
View file @
69f2c537
...
...
@@ -7,6 +7,8 @@ Wants=network-online.target
Type=oneshot
KillMode=none
ExecStart=/opt/primtux-eole/mount_shares.sh
Restart=on-failure
RestartSec=30
[Install]
WantedBy=multi-user.target
mount_shares.sh
View file @
69f2c537
#!/bin/bash
# Ensure ecole-dc is reachable before mounts
while
!
ping
-c
1 ecole-dc
>
/dev/null 2>&1
do
echo
"Cannot reach ecole-dc, waiting 10 sec"
sleep
10
done
[
`
grep
-c
'^//ecole-dc/'
/etc/mtab
`
-gt
0
]
&&
exit
0
awk
'/^\/\/ecole-dc/{print $2}'
/etc/fstab |
\
while
read
dest
...
...
Write
Preview
Markdown
is supported
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