priv is in /root not /
This commit is contained in:
parent
d20a3b57f0
commit
bc7ff58eab
|
@ -2,5 +2,5 @@
|
||||||
client_id="$(curl -s https://pt.vern.cc/api/v1/oauth-clients/local | jq -r '.client_id')"
|
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')"
|
client_secret="$(curl -s https://pt.vern.cc/api/v1/oauth-clients/local | jq -r '.client_secret')"
|
||||||
curl -s -X POST \
|
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'
|
https://pt.vern.cc/api/v1/users/token | jq -r '.access_token'
|
||||||
|
|
Loading…
Reference in New Issue