set -e
+LOCALSTATEDIR=@LOCALSTATEDIR@
+
if [ -r /etc/default/lxc ]; then
. /etc/default/lxc
fi
fi
# generate new SSH keys
- if [ -x $rootfs@LOCALSTATEDIR@/lib/dpkg/info/openssh-server.postinst ]; then
+ if [ -x $rootfs$LOCALSTATEDIR/lib/dpkg/info/openssh-server.postinst ]; then
cat > $rootfs/usr/sbin/policy-rc.d << EOF
#!/bin/sh
exit 101
rm -f $rootfs/etc/ssh/ssh_host_*key*
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 $LOCALSTATEDIR/lib/dpkg/info/openssh-server.postinst configure
mv $rootfs/etc/init/ssh.conf.disabled $rootfs/etc/init/ssh.conf
rm -f $rootfs/usr/sbin/policy-rc.d
rootfs=$1
release=$2
flushcache=$3
- cache="@LOCALSTATEDIR@/cache/lxc/$release"
- mkdir -p @LOCALSTATEDIR@/lock/subsys/
+ cache="$LOCALSTATEDIR/cache/lxc/$release"
+ mkdir -p $LOCALSTATEDIR/lock/subsys/
(
flock -x 200
return 0
- ) 200>@LOCALSTATEDIR@/lock/subsys/lxc-ubuntu
+ ) 200>$LOCALSTATEDIR/lock/subsys/lxc-ubuntu
return $?
}