dépôts
/
lhc
/
ateliers.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Correction : {host,local,remote}/ : duplicity + MySQL.
[lhc/ateliers.git]
/
etc
/
profile.d
/
path.sh
diff --git a/etc/profile.d/path.sh
b/etc/profile.d/path.sh
new file mode 100644
(file)
index 0000000..
022054d
--- /dev/null
+++ b/
etc/profile.d/path.sh
@@ -0,0
+1,3
@@
+export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
+! getent group sudo | cut -f 4 -d : | tr , '\n' | grep -Fqx "$USER" ||
+PATH="$HOME/src/$(hostname)/local:$PATH"