Well I already managed it to work.
Although the restart of the webserver still doesn't work.
Forgot to change the type to ispconfig which runs as root.
The only issue after changing to type ispconfig is that the db isn't created automatic. So I do this now in the script too with the info from the app.ini