%s/@LOCALSTATEDIR@/\/var/g
This commit is contained in:
parent
a1c7a4ece0
commit
739e602794
1 changed files with 5 additions and 5 deletions
|
@ -92,7 +92,7 @@ EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# generate new SSH keys
|
# generate new SSH keys
|
||||||
if [ -x $rootfs@LOCALSTATEDIR@/lib/dpkg/info/openssh-server.postinst ]; then
|
if [ -x $rootfs/var/lib/dpkg/info/openssh-server.postinst ]; then
|
||||||
cat > $rootfs/usr/sbin/policy-rc.d << EOF
|
cat > $rootfs/usr/sbin/policy-rc.d << EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exit 101
|
exit 101
|
||||||
|
@ -101,7 +101,7 @@ EOF
|
||||||
|
|
||||||
rm -f $rootfs/etc/ssh/ssh_host_*key*
|
rm -f $rootfs/etc/ssh/ssh_host_*key*
|
||||||
mv $rootfs/etc/init/ssh.conf $rootfs/etc/init/ssh.conf.disabled
|
mv $rootfs/etc/init/ssh.conf $rootfs/etc/init/ssh.conf.disabled
|
||||||
DPKG_MAINTSCRIPT_PACKAGE=openssh DPKG_MAINTSCRIPT_NAME=postinst chroot $rootfs @LOCALSTATEDIR@/lib/dpkg/info/openssh-server.postinst configure
|
DPKG_MAINTSCRIPT_PACKAGE=openssh DPKG_MAINTSCRIPT_NAME=postinst chroot $rootfs /var/lib/dpkg/info/openssh-server.postinst configure
|
||||||
mv $rootfs/etc/init/ssh.conf.disabled $rootfs/etc/init/ssh.conf
|
mv $rootfs/etc/init/ssh.conf.disabled $rootfs/etc/init/ssh.conf
|
||||||
|
|
||||||
rm -f $rootfs/usr/sbin/policy-rc.d
|
rm -f $rootfs/usr/sbin/policy-rc.d
|
||||||
|
@ -313,8 +313,8 @@ install_ubuntu()
|
||||||
rootfs=$1
|
rootfs=$1
|
||||||
release=$2
|
release=$2
|
||||||
flushcache=$3
|
flushcache=$3
|
||||||
cache="@LOCALSTATEDIR@/cache/lxc/$release"
|
cache="/var/cache/lxc/$release"
|
||||||
mkdir -p @LOCALSTATEDIR@/lock/subsys/
|
mkdir -p /var/lock/subsys/
|
||||||
|
|
||||||
(
|
(
|
||||||
flock -x 200
|
flock -x 200
|
||||||
|
@ -348,7 +348,7 @@ install_ubuntu()
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
) 200>@LOCALSTATEDIR@/lock/subsys/lxc-ubuntu
|
) 200>/var/lock/subsys/lxc-ubuntu
|
||||||
|
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue