diff --git a/README.md b/README.md index 5092632..af197ba 100644 --- a/README.md +++ b/README.md @@ -28,14 +28,13 @@ The application currently targets Linux systems using `systemd`. You need: - Linux -- Python 3 +- `Python 3` - `python-venv` - `pip` - `systemd` - `sudo` - `passwd` - `loginctl` -- Git The enforcement service requires **root privileges** because it manages other Linux users and their sessions. @@ -58,6 +57,6 @@ chmod +x install.sh ```bash sudo ./install.sh ``` -### You can access it via http://127.0.0.1:8765/admin +If the installation is successful you`ll now have an working native applipcation diff --git a/config/state.json b/config/state.json index a37d310..a3d602b 100644 --- a/config/state.json +++ b/config/state.json @@ -1,4 +1,8 @@ -{ - "usage": {}, +{ + "usage": { + "testuser1": { + "2026-09-18": 300 + } + }, "temporary_grants": [] -} +} \ No newline at end of file diff --git a/config/users.yaml b/config/users.yaml index dd16570..2580340 100644 --- a/config/users.yaml +++ b/config/users.yaml @@ -1 +1,46 @@ -users: [] +users: +- id: 1 + username: testuser1 + enabled: true + daily_allowance: + sunday: 300 + monday: 300 + tuesday: 300 + wednesday: 300 + thursday: 300 + friday: 300 + saturday: 300 + access_windows: + sunday: + - start: '16:00' + end: '21:00' + monday: + - start: '16:00' + end: '21:00' + tuesday: + - start: '16:00' + end: '21:00' + wednesday: + - start: '16:00' + end: '21:00' + thursday: + - start: '16:00' + end: '21:00' + friday: + - start: 00:00 + end: 01:00 + saturday: + - start: '16:00' + end: '21:00' +- id: 2 + username: testuser2 + enabled: true + daily_allowance: + sunday: 0 + monday: 0 + tuesday: 0 + wednesday: 0 + thursday: 0 + friday: 0 + saturday: 0 + access_windows: {}