(Dec 29) New version 0.9.8-18 has been released

Suspend multiple users API

Questions regarding the API
Application Programming Interface
Forum rules
Before creating a new topic or reply on the forum you should fill out additional fields "Os" and "Web" in your profile section.
In case of violation, the topic can be closed or response from the support will not be received.
elicast
Posts: 15
Joined: Mon Jul 20, 2015 12:09 am
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: 7808
Joined: Fri Dec 26, 2014 2:23 pm
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: No registered users and 3 guests