workspace: update reset.sh

This commit is contained in:
undefined committed 2023-02-19 19:17:18 +08:00
1 parent 00c01a2c29
commit f045154200
1 file changed
+1 -1
+1 -1
View File
@@ -11,7 +11,7 @@ echo "db.createUser({
{ role: 'readWrite', db: 'hydro' }
]
})" >/tmp/createUser.js
mongo 127.0.0.1:27017/hydro /tmp/createUser.js
mongosh 127.0.0.1:27017/hydro /tmp/createUser.js
echo "{\"host\":\"127.0.0.1\",\"port\":\"27017\",\"name\":\"hydro\",\"username\":\"hydro\",\"password\":\"$db_password\"}" >~/.hydro/config.json
pm2 stop mongod
pm2 del mongod