From 17cd3ab7a75f17d1be033aec936469e3aad02630 Mon Sep 17 00:00:00 2001 From: nemsia Date: Thu, 20 Apr 2017 12:02:28 +0200 Subject: [PATCH] Remove Create User --- scripts/.fonctions | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/.fonctions b/scripts/.fonctions index 20f9ea0..58f67a2 100644 --- a/scripts/.fonctions +++ b/scripts/.fonctions @@ -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 -} \ No newline at end of file +}