File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 83
83
cd ${{ steps.get_version.outputs.version_file }}
84
84
cp -r ../build/* .
85
85
cp -r ../node_modules .
86
- cp -r ../dbUtils.js .
86
+ cp -r ../src/ dbUtils.js .
87
87
cp -r ../config.env.template .
88
88
89
89
- name : Create tar.gz
Original file line number Diff line number Diff line change 27
27
28
28
4 ) Use dbUtils.js
29
29
30
- You can manually update the rights with ` dbUtils.js ` :
30
+ You can manually set a user as admin with ` dbUtils.js ` :
31
31
32
32
``` 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 ")'
34
34
```
35
35
36
36
# Run the web frontend
Original file line number Diff line number Diff line change 1
1
// This file provides utility functions to for managing admin users
2
2
//
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")'
6
6
//
7
7
// If your are running this script outside of this module, specify NODE_PATH=
8
8
You can’t perform that action at this time.
0 commit comments