Skip to content

Commit 7cbb9cf

Browse files
author
Ahmed Elghareeb
committed
docs: updates the documentation to reflect the dbUtils changes
1 parent dbdce2c commit 7cbb9cf

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/releases.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
cd ${{ steps.get_version.outputs.version_file }}
8484
cp -r ../build/* .
8585
cp -r ../node_modules .
86-
cp -r ../dbUtils.js .
86+
cp -r ../src/dbUtils.js .
8787
cp -r ../config.env.template .
8888
8989
- name: Create tar.gz

deb-package/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ app.
2727

2828
4) Use dbUtils.js
2929

30-
You can manually update the rights with `dbUtils.js`:
30+
You can manually set a user as admin with `dbUtils.js`:
3131

3232
```sh
33-
NODE_PATH=./node_modules node -e 'require("./dbUtils").listEls("../data/dvoting-users")'
33+
NODE_PATH=./node_modules node -e 'require("./src/dbUtils").addAdmin("MY_SCIPER")'
3434
```
3535

3636
# Run the web frontend

web/backend/src/dbUtils.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// This file provides utility functions to for managing admin users
22
//
3-
// node -e 'require("./dbUtils").addAdmin("1234")'
4-
// node -e 'require("./dbUtils").listUserPermissions("1234")'
5-
// node -e 'require("./dbUtils").removeAdmin("1234")'
3+
// node -e 'require("./src/bUtils").addAdmin("1234")'
4+
// node -e 'require("./src/dbUtils").listUserPermissions("1234")'
5+
// node -e 'require("./src/dbUtils").removeAdmin("1234")'
66
//
77
// If your are running this script outside of this module, specify NODE_PATH=
88

0 commit comments

Comments
 (0)