(Jun 22) Release 0.9.8-19 with bug fixes available now. Run this command for update v-update-sys-vesta-all

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.
Posts: 15
Joined: Mon Jul 20, 2015 12:09 am

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: 7808
Joined: Fri Dec 26, 2014 2:23 pm

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 1 guest