Fixed operand
This commit is contained in:
parent
53b178f609
commit
8929625c95
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ for i in $(lxc list --format csv -c n); do
|
||||||
lxc exec "$i" -- mysqldump --opt --all-databases --force --events --hex-blob | cat > "${i}.sql"
|
lxc exec "$i" -- mysqldump --opt --all-databases --force --events --hex-blob | cat > "${i}.sql"
|
||||||
fi
|
fi
|
||||||
if lxc exec "$i" -- which psql >/dev/null; then
|
if lxc exec "$i" -- which psql >/dev/null; then
|
||||||
if lxc exec "$i" -- id postgres >/dev/null 2/&1; then
|
if lxc exec "$i" -- id postgres >/dev/null 2>&1; then
|
||||||
echo "Dumping $i"
|
echo "Dumping $i"
|
||||||
lxc exec "$i" -- sudo -u postgres pg_dumpall | cat > "${i}.sql"
|
lxc exec "$i" -- sudo -u postgres pg_dumpall | cat > "${i}.sql"
|
||||||
fi
|
fi
|
||||||
|
|
Reference in a new issue