We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
原因是 TMP_DIR="$(mktemp -d)" 这里创建的临时目录的权限是700, 然后把sql放进去后
cat > ${TMP_DIR}/sql.sql <<-EOF CREATE USER zhenxun WITH PASSWORD 'zxpassword'; CREATE DATABASE zhenxun OWNER zhenxun; EOF
再
su postgres -c "psql -f ${TMP_DIR}/sql.sql"
因为postgres不能读取root创建的700临时目录, 就出现了 psql: error: /tmp/tmp.r0lnnDTUn7/sql.sql: Permission denied
The text was updated successfully, but these errors were encountered:
fix: psql running of Permission denied for #21
a316382
No branches or pull requests
原因是 TMP_DIR="$(mktemp -d)"
这里创建的临时目录的权限是700, 然后把sql放进去后
再
因为postgres不能读取root创建的700临时目录, 就出现了
psql: error: /tmp/tmp.r0lnnDTUn7/sql.sql: Permission denied
The text was updated successfully, but these errors were encountered: