#!/bin/sh

config_file="/etc/hwtest.d/$1.ini"

if [ "$1" = "hwtest" ]; then
    sed -i 's|hwtest/plugins/manual_prompt|hwtest/plugins/questions_info|' $config_file
    cat <<'EOF' >>$config_file
[hwtest/plugins/questions_info]
directories = %(hwtest_directory)s/questions

EOF
fi
