summaryrefslogtreecommitdiffstats
path: root/base/pkg-get-awk/post-install
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2011-02-06 14:24:08 +0100
committertnut <thierryn1 at hispeed dot ch>2011-02-06 14:24:08 +0100
commitb36b1fb0d0e0106b40879d54f85616e6217bcc50 (patch)
treea35e8f3468e88ed295c665ee51a23cbfed5bd4ff /base/pkg-get-awk/post-install
parent8e93feb91409db77f8179718f1cf054a157de220 (diff)
downloadnutyx-pakxe-b36b1fb0d0e0106b40879d54f85616e6217bcc50.tar.gz
nutyx-pakxe-b36b1fb0d0e0106b40879d54f85616e6217bcc50.tar.bz2
nutyx-pakxe-b36b1fb0d0e0106b40879d54f85616e6217bcc50.tar.xz
nutyx-pakxe-b36b1fb0d0e0106b40879d54f85616e6217bcc50.zip
pkg-get-awk, correction de quelques bugs
Diffstat (limited to 'base/pkg-get-awk/post-install')
-rwxr-xr-xbase/pkg-get-awk/post-install11
1 files changed, 11 insertions, 0 deletions
diff --git a/base/pkg-get-awk/post-install b/base/pkg-get-awk/post-install
index 63e4e41c8..249cbf8fc 100755
--- a/base/pkg-get-awk/post-install
+++ b/base/pkg-get-awk/post-install
@@ -1,6 +1,7 @@
#!/bin/sh
pkf=/usr/bin/pkg-get
+syn=/usr/bin/syn
if [ -L $pkf ]; then
rm $pkf
else
@@ -9,11 +10,21 @@ else
mv $pkf $pkf.pl
fi
fi
+if [ -L $syn ]; then
+ rm $syn
+else
+ file $syn | grep bash >/dev/null
+ if [ $? -eq 0 ]; then
+ mv $syn $syn.old
+ fi
+fi
if [ -f $pkf ]; then
echo "pkg-get-awk_post_install: ERREUR, le fichier $pkf existe déjà !!!"
exit 1
fi
ln -s /usr/bin/pkg-get.awk $pkf
+ln -s /usr/bin/syn.awk $syn
if [ ! -f /etc/pkg-get.conf ]; then
cp -p /etc/pkg-get-awk.conf /etc/pkg-get.conf
fi
+