Suspend multiple users API

Questions regarding the API
Application Programming Interface
Posts: 15
Joined: Mon Jul 20, 2015 12:09 am
Location: Iguatu, CE Brasil

Suspend multiple users API

Postby elicast » Mon Oct 05, 2015 7:05 pm

to suspend more than one user through the api

thus works hand control through

create bin v-suspend-mulit-user

Code: Select all

for user in "$@"
    echo "Suspend user $user"
    v-suspend-user $user

Code: Select all

execute: v-suspend-mulit-user user1 user2 user3

code by: tjebbeke

VestaCP Team
Posts: 7798
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow

Re: [Manual] suspend multiple users API (!)

Postby skurudo » Sun Oct 11, 2015 4:18 pm

Nice recipe!
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now

Return to “Scripting / API”

Who is online

Users browsing this forum: No registered users and 2 guests