forked from neil/lxc-templates
Merge pull request #34 from tenforward/plamo
plamo: Support current pkgtools
This commit is contained in:
commit
a4b2383cd5
@ -124,12 +124,17 @@ install_plamo() {
|
||||
|
||||
if [ $majorver -ge 7 ]; then
|
||||
pkgtool="pkgtools"
|
||||
pkgtool=$( cd $dlcache ; ls "$pkgtool"* )
|
||||
pkgtool=${pkgtool%%-*}
|
||||
else
|
||||
pkgtool="hdsetup"
|
||||
LANG=C
|
||||
fi
|
||||
|
||||
( cd $dlcache ; tar xpJf "$pkgtool"-*.txz ; rm -rf tmp usr var )
|
||||
if [ $pkgtool = "pkgtools${majorver}" ]; then
|
||||
( cd $dlcache/sbin ; mv installer_new installer )
|
||||
fi
|
||||
|
||||
sed -i "/ldconfig/!s@/sbin@$dlcache&@g" $dlcache/sbin/installpkg*
|
||||
PATH=$dlcache/sbin:$PATH
|
||||
|
Loading…
Reference in New Issue
Block a user