forked from neil/lxc-templates
plamo: Support current pkgtools
Our package manager "pkgtools" is updated, and renamed "pkgtools7". Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
This commit is contained in:
parent
f841a6f7f1
commit
4c11070332
@ -124,12 +124,17 @@ install_plamo() {
|
|||||||
|
|
||||||
if [ $majorver -ge 7 ]; then
|
if [ $majorver -ge 7 ]; then
|
||||||
pkgtool="pkgtools"
|
pkgtool="pkgtools"
|
||||||
|
pkgtool=$( cd $dlcache ; ls "$pkgtool"* )
|
||||||
|
pkgtool=${pkgtool%%-*}
|
||||||
else
|
else
|
||||||
pkgtool="hdsetup"
|
pkgtool="hdsetup"
|
||||||
LANG=C
|
LANG=C
|
||||||
fi
|
fi
|
||||||
|
|
||||||
( cd $dlcache ; tar xpJf "$pkgtool"-*.txz ; rm -rf tmp usr var )
|
( 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*
|
sed -i "/ldconfig/!s@/sbin@$dlcache&@g" $dlcache/sbin/installpkg*
|
||||||
PATH=$dlcache/sbin:$PATH
|
PATH=$dlcache/sbin:$PATH
|
||||||
|
Loading…
Reference in New Issue
Block a user