diff options
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/script/installmisc.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/script/installmisc.sh b/source4/script/installmisc.sh index 7851d1f77d..cb618628b0 100755 --- a/source4/script/installmisc.sh +++ b/source4/script/installmisc.sh @@ -18,7 +18,10 @@ cd $SRCDIR || exit 1 fix_python_path() { f="$1" egrep 'sys.path.insert.*bin/python' $f > /dev/null && { - sed -i "s|\(sys.path.insert.*\)bin/python\(.*\)$|\1$PYTHONDIR\2|g" $f || exit 1 + # old systems don't have sed -i :-( + sed "s|\(sys.path.insert.*\)bin/python\(.*\)$|\1$PYTHONDIR\2|g" < $f > $f.$$ || exit 1 + mv -f $f.$$ $f || exit 1 + chmod +x $f } } |