1
0
Fork 0
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:
Julien Malik 2014-07-02 16:15:07 +02:00
parent a2ff0eeffe
commit 962973663e
3 changed files with 8 additions and 8 deletions

View file

@ -1,4 +1,4 @@
import sys, json
for i in json.loads(sys.stdin.readlines()[0])["Users"]:
if i["Username"] == sys.argv[1]:
print i["Mail"]
for i in json.loads(sys.stdin.readlines()[0])["users"]:
if i["username"] == sys.argv[1]:
print i["mail"]

View file

@ -1,4 +1,4 @@
import sys, json
for i in json.loads(sys.stdin.readlines()[0])["Users"]:
if i["Username"] == sys.argv[1]:
print i["Fullname"]
for i in json.loads(sys.stdin.readlines()[0])["users"]:
if i["username"] == sys.argv[1]:
print i["fullname"]

View file

@ -124,8 +124,8 @@ sudo yunohost app ssowatconf
echo "Registering admin..."
sleep 5
admin_name=$(sudo yunohost user list | python ../conf/user_getname.py $admin)
admin_mail=$(sudo yunohost user list | python ../conf/user_getmail.py $admin)
admin_name=$(sudo yunohost user list --json | python ../conf/user_getname.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
sleep 5
csrf_token=$(cat signup_get | egrep csrf-param | egrep "content=\".+\"" -o | egrep "\".+\"" -o | cut -d '"' -f 2)