Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Blanc
scripts
Commits
b6d15e3c
Commit
b6d15e3c
authored
Aug 29, 2014
by
Pierre-Elliott Bécue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[crans] Disclaimer
parent
90e7315d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
respbats/crans
respbats/crans
+11
-12
No files found.
respbats/crans
View file @
b6d15e3c
#! /bin/sh
if
[
!
-e
/usr/scripts/var/encodage_scripts/
$UID
]
;
then
cat
/usr/scripts/var/encodage_scripts/disclaimer
touch
/usr/scripts/var/encodage_scripts/
$UID
else
# Si le script sort avec une erreur, on purge les locks deads
LANG
=
fr_FR.UTF-8
sudo
-u
respbats /usr/scripts/gestion/gest_crans.py
"
$@
"
trucmuche
=
$?
[
$trucmuche
-eq
0
]
||
LANG
=
fr_FR.UTF-8
sudo
-u
respbats /usr/scripts/gestion/ldap_crans.py
--zombielock
exit
$((
$trucmuche
+
$?
))
fi
;
#! /bin/bash
if
[
!
-e
/usr/scripts/var/glissantes_ok/
$EUID
]
;
then
cat
/usr/scripts/var/glissantes_ok/disclaimer
read
a
touch
/usr/scripts/var/glissantes_ok/
$EUID
fi
# Si le script sort avec une erreur, on purge les locks deads
LANG
=
fr_FR.UTF-8
sudo
-u
respbats /usr/scripts/gestion/gest_crans.py
"
$@
"
trucmuche
=
$?
[
$trucmuche
-eq
0
]
||
LANG
=
fr_FR.UTF-8
sudo
-u
respbats /usr/scripts/gestion/ldap_crans.py
--zombielock
exit
$((
$trucmuche
+
$?
))
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