Suspend multiple users API

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

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

#!/bin/bash
for user in "$@"
do
    echo "Suspend user $user"
    v-suspend-user $user
done


Code: Select all

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


code by: tjebbeke

skurudo
VestaCP Team
Posts: 7776
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

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: Google [Bot] and 2 guests