mirror of
https://github.com/YunoHost-Apps/ghost_ynh.git
synced 2024-09-03 19:16:02 +02:00
fix install for new moulinette API
This commit is contained in:
parent
a2ff0eeffe
commit
962973663e
3 changed files with 8 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
||||||
import sys, json
|
import sys, json
|
||||||
for i in json.loads(sys.stdin.readlines()[0])["Users"]:
|
for i in json.loads(sys.stdin.readlines()[0])["users"]:
|
||||||
if i["Username"] == sys.argv[1]:
|
if i["username"] == sys.argv[1]:
|
||||||
print i["Mail"]
|
print i["mail"]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import sys, json
|
import sys, json
|
||||||
for i in json.loads(sys.stdin.readlines()[0])["Users"]:
|
for i in json.loads(sys.stdin.readlines()[0])["users"]:
|
||||||
if i["Username"] == sys.argv[1]:
|
if i["username"] == sys.argv[1]:
|
||||||
print i["Fullname"]
|
print i["fullname"]
|
||||||
|
|
|
@ -124,8 +124,8 @@ sudo yunohost app ssowatconf
|
||||||
|
|
||||||
echo "Registering admin..."
|
echo "Registering admin..."
|
||||||
sleep 5
|
sleep 5
|
||||||
admin_name=$(sudo yunohost user list | python ../conf/user_getname.py $admin)
|
admin_name=$(sudo yunohost user list --json | python ../conf/user_getname.py $admin)
|
||||||
admin_mail=$(sudo yunohost user list | python ../conf/user_getmail.py $admin)
|
admin_mail=$(sudo yunohost user list --json | python ../conf/user_getmail.py $admin)
|
||||||
curl -kL -X GET https://$domain${path%/}/ghost/signup --cookie-jar cookie.txt > signup_get
|
curl -kL -X GET https://$domain${path%/}/ghost/signup --cookie-jar cookie.txt > signup_get
|
||||||
sleep 5
|
sleep 5
|
||||||
csrf_token=$(cat signup_get | egrep csrf-param | egrep "content=\".+\"" -o | egrep "\".+\"" -o | cut -d '"' -f 2)
|
csrf_token=$(cat signup_get | egrep csrf-param | egrep "content=\".+\"" -o | egrep "\".+\"" -o | cut -d '"' -f 2)
|
||||||
|
|
Loading…
Add table
Reference in a new issue