I installed timecheck (version: Commit 6f836aeb42) using the installer and it asked me for the username and the usage time spans. So I typed in the username errhammr and 120 for both time spans.
Looking into the config file unter /opt/timecheck/timecheck.conf I found the following:
# This script is released under the GPLv3 license
# See COPYING file for more information
# Please replace 'YourUserHere' with the account name of the user that you want to control
USER=YourUserHere
# Insert the maximum available time in minutes.
# TIME_MOFR for the time from Monday 0:00 to Friday 23:59
TIME_MOFR=100
# TIME_SASU for the time form Saturday 0:00 to Sunday 23:59
TIME_SASU=100
# change only if you want to be notified earlyer then 10 minutes before automated loggout. See README for further information.
EXIT_SCRIPT=11
USER=errhammr
TIME_MOFR=120
TIME_SASU=120
It seems to me that the installer copies the example config file and appends the user defined values to it. Expected behavior would be to replace the default values with the user defined ones instead of appending them.
I'll see if I can provide a pull request to fix that using sed or something.
I installed timecheck (version: Commit 6f836aeb42add85beaeb05a46c2a9e2c0a68bcfc) using the installer and it asked me for the username and the usage time spans. So I typed in the username `errhammr` and `120` for both time spans.
Looking into the config file unter `/opt/timecheck/timecheck.conf` I found the following:
```
# This script is released under the GPLv3 license
# See COPYING file for more information
# Please replace 'YourUserHere' with the account name of the user that you want to control
USER=YourUserHere
# Insert the maximum available time in minutes.
# TIME_MOFR for the time from Monday 0:00 to Friday 23:59
TIME_MOFR=100
# TIME_SASU for the time form Saturday 0:00 to Sunday 23:59
TIME_SASU=100
# change only if you want to be notified earlyer then 10 minutes before automated loggout. See README for further information.
EXIT_SCRIPT=11
USER=errhammr
TIME_MOFR=120
TIME_SASU=120
```
It seems to me that the installer copies the example config file and appends the user defined values to it. Expected behavior would be to replace the default values with the user defined ones instead of appending them.
I'll see if I can provide a pull request to fix that using `sed` or something.