/usr/share/upstart/sessions/puritine-click.conf is in libertine-demo 1.0.0+16.04.20160411-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | description "Puritine Click chroot linking"
start on started unity8
script
PACKAGE_PATH=`click pkgdir com.ubuntu.puritine`
CONTAINER_NAME=puritine
CHROOT_PATH=$PACKAGE_PATH/libertine-data/libertine-container/$CONTAINER_NAME
if [ -x $CHROOT_PATH/rootfs ] ; then
# Link the chroot
if [ ! -L $HOME/.cache/libertine-container/$CONTAINER_NAME/rootfs ] ; then
mkdir -p $HOME/.cache/libertine-container/$CONTAINER_NAME/
ln -s $CHROOT_PATH/rootfs $HOME/.cache/libertine-container/$CONTAINER_NAME/rootfs
fi
# Link the container config
if [ ! -L $HOME/.local/share/libertine/ContainersConfig.json ] ; then
mkdir -p $HOME/.local/share/libertine/
ln -s $PACKAGE_PATH/libertine-config/libertine/ContainersConfig.json $HOME/.local/share/libertine/ContainersConfig.json
fi
# Create and copy the user-data dir from the click package
if [ ! -d $HOME/.local/share/libertine-container/user-data/$CONTAINER_NAME ] ; then
cp -dR $PACKAGE_PATH/libertine-config/libertine-container/ $HOME/.local/share/libertine-container/
fi
else
rm -rf $HOME/.cache/libertine-container/$CONTAINER_NAME
if [ $(libertine-container-manager list | grep -v ${CONTAINER_NAME} | wc -l) -eq 0 ]; then
rm -rf $HOME/.local/share/libertine
fi
rm -rf $HOME/.local/share/libertine-container/user-data/$CONTAINER_NAME/.config/
fi
end script
|