priv is in /root not /

This commit is contained in:
root 2022-12-11 08:32:32 +00:00
parent d20a3b57f0
commit bc7ff58eab
1 changed files with 1 additions and 1 deletions

View File

@ -2,5 +2,5 @@
client_id="$(curl -s https://pt.vern.cc/api/v1/oauth-clients/local | jq -r '.client_id')"
client_secret="$(curl -s https://pt.vern.cc/api/v1/oauth-clients/local | jq -r '.client_secret')"
curl -s -X POST \
-d "client_id=${client_id}&client_secret=${client_secret}&grant_type=password&response_type=code&username=root&password=$(</priv/peertube-pass)" \
-d "client_id=${client_id}&client_secret=${client_secret}&grant_type=password&response_type=code&username=root&password=$(</root/priv/peertube-pass)" \
https://pt.vern.cc/api/v1/users/token | jq -r '.access_token'