give mysql password dump to pac-admin
This commit is contained in:
parent
ce55f33d79
commit
84907fcd2c
@ -32,7 +32,8 @@ function shadowdump(pac) {
|
|||||||
function mysqlaclsdump(pac) {
|
function mysqlaclsdump(pac) {
|
||||||
var dump = "/home/pacs/" + pac + "/.bak/mysql_passwd";
|
var dump = "/home/pacs/" + pac + "/.bak/mysql_passwd";
|
||||||
var cmd = "mysqldump --no-create-db --skip-opt --no-create-info --replace --where=\"user like '" + pac + "%'\" mysql --tables user > " + dump
|
var cmd = "mysqldump --no-create-db --skip-opt --no-create-info --replace --where=\"user like '" + pac + "%'\" mysql --tables user > " + dump
|
||||||
+ " && mysqldump --no-create-db --skip-opt --no-create-info --replace --where=\"db like '" + pac + "%'\" mysql --tables db tables_priv proc >>" + dump;
|
+ " && mysqldump --no-create-db --skip-opt --no-create-info --replace --where=\"db like '" + pac + "%'\" mysql --tables db tables_priv proc >>" + dump
|
||||||
|
+ " && chown " + pac + ":" + pac + " " + dump;
|
||||||
runbash(cmd);
|
runbash(cmd);
|
||||||
}
|
}
|
||||||
function pgsqlpasswddump(pac) {
|
function pgsqlpasswddump(pac) {
|
||||||
|
Loading…
Reference in New Issue
Block a user