mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-25 12:15:34 +08:00
fixbug when reset shadowsock password
This commit is contained in:
@@ -21,7 +21,8 @@ exports.post '/reset_password', (req, res) ->
|
||||
req.account.attribute.plugin.shadowsocks.password = password
|
||||
|
||||
service.restart req.account, ->
|
||||
res.json {}
|
||||
service.restartAccount req.account, ->
|
||||
res.json {}
|
||||
|
||||
wiki_router = express.Router()
|
||||
|
||||
|
||||
@@ -121,6 +121,10 @@ module.exports =
|
||||
child_process.exec 'sudo supervisorctl update', ->
|
||||
callback()
|
||||
|
||||
restartAccount: (account, callback) ->
|
||||
child_process.exec "sudo supervisorctl restart shadowsocks-#{account.username}", ->
|
||||
callback()
|
||||
|
||||
monitoring: ->
|
||||
queryIptablesInfo (iptables_info) ->
|
||||
async.map _.values(iptables_info), (item, callback) ->
|
||||
|
||||
Reference in New Issue
Block a user