projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Réglé problème avec fpkg: si le texte "404" se retrouvait dans le log de wget (exempl...
[hvlinux.git]
/
stage2
/
post-install
diff --git
a/stage2/post-install
b/stage2/post-install
index
f0f33e0
..
86f919a
100755
(executable)
--- a/
stage2/post-install
+++ b/
stage2/post-install
@@
-1,9
+1,6
@@
#!/bin/bash
#!/bin/bash
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
+source ../functions/main
cat > /etc/default/useradd << "EOF"
# useradd defaults file
cat > /etc/default/useradd << "EOF"
# useradd defaults file
@@
-37,7
+34,12
@@
sed -i -e "s!^\(PATH=\).*tools.*!\1${SED_REP}!" /etc/profile
# Removing /tools directory
if [ -d /tools ]; then
# Removing /tools directory
if [ -d /tools ]; then
- mv /tools /tools.to.remove.after.stage2
+ DEST=/usr/src/tools
+ if [ -d ${DEST} ]; then
+ # Remove old backup
+ rm -rf ${DEST}
+ fi
+ mv /tools ${DEST}
fi
ldconfig
fi
ldconfig