/usr/share/ltsp/plugins/ltsp-build-client/Debian/010-enable-popcon is in ltsp-server 5.5.7-1.
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 | case "$MODE" in
commandline)
add_option "enable-popcon" "`eval_gettext "enable popularity-contest in the chroot"`" "advanced" "false"
;;
configure)
if [ -n "$option_enable_popcon_value" ]; then
EARLY_PACKAGES="$EARLY_PACKAGES popularity-contest"
fi
;;
finalization)
if [ -n "$option_enable_popcon_value" ] && [ -f "$ROOT/etc/popularity-contest.conf" ]; then
echo "`eval_gettext "Enabling popularity contest..."`"
# enable popularity-contest reporting
# TODO: handle when PARTICIPATE is not set
sed -i -e 's,PARTICIPATE=.*,PARTICIPATE="yes",g' $ROOT/etc/popularity-contest.conf
if [ ! -f /etc/cron.daily/popularity-contest-ltsp ]; then
ln -s /usr/share/ltsp/scripts/popularity-contest-ltsp /etc/cron.daily/
fi
fi
;;
esac
|