I created a shell script that creates a plesk database and assigns the permissions directly.
Code:
If I now connect via SSH and call the command with: su -c "bash /script.sh" then it works, but I create a root task in the scheduled tasks and run the same command via Plesk, then Plesk always writes following error: "Plesk: Command not found."
This error occurs with Plesk on Debian 10, on Debian 9 I don't have such problems with it and it works fine.
Code:
Code:
plesk bin database -c test -domain test_host -type mysql -add_user test_user -passwd test_pw -add-access 'localhost' -remove-access '%' -set-privileges '..','..''
If I now connect via SSH and call the command with: su -c "bash /script.sh" then it works, but I create a root task in the scheduled tasks and run the same command via Plesk, then Plesk always writes following error: "Plesk: Command not found."
This error occurs with Plesk on Debian 10, on Debian 9 I don't have such problems with it and it works fine.