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:
parent
c1ac899a6e
commit
17cd3ab7a7
1 changed files with 1 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue