1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00

Remove Create User

This commit is contained in:
nemsia 2017-04-20 12:02:28 +02:00 committed by GitHub
parent c1ac899a6e
commit 17cd3ab7a7

View file

@ -110,13 +110,6 @@ SETUP_SOURCE () { # Download source, decompress and copu into $final_path
fi
}
# Create user with special hack
CREATE_USER () {
sudo curl -kSs https://${domain}/auth/sign_up --cookie-jar cookie | grep csrf > token || true
token=$(sudo cat token | sed -n '/csrf-token/s/.*name="csrf-token"\s\+content="\([^"]\+\).*/\1/p')
sudo curl -kSs https://${domain}/auth --data "&user[account_attributes][username]=${admin_mastodon}&user[email]=${admin_mastodon}@${domain}&user[password]=${admin_pass}&user[password_confirmation]=${admin_pass}&authenticity_token=${token}" --cookie cookie
}
### REMOVE SCRIPT
REMOVE_NGINX_CONF () { # Delete nginx configuration
@ -260,4 +253,4 @@ ynh_secure_remove () {
echo "$path_to_remove doesn't deleted because it's not exist." >&2
fi
fi
}
}