Merge branch 'master' of
ssh://hsh04-source@hsh04.hostsharing.net/home/doms/source.hostsharing.net/source/hsadmin.git
This commit is contained in:
commit
69dc85841e
@ -30,7 +30,7 @@ function shadowdump(pac) {
|
||||
runbash(cmd);
|
||||
}
|
||||
function mysqlaclsdump(pac) {
|
||||
var dump = "/home/pacs/" + pac + "/.bak/mysql_passwd.gz";
|
||||
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
|
||||
+ " && mysqldump --no-create-db --skip-opt --no-create-info --replace --where=\"db like '" + pac + "%'\" mysql --tables db tables_priv proc >>" + dump;
|
||||
runbash(cmd);
|
||||
@ -209,4 +209,4 @@ if (pacs.length == 1 && hive != 'undef') {
|
||||
pgsqlpasswddump(pacname);
|
||||
} else {
|
||||
print('run as pac-owner!\n');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user