Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta CLI
  • Search

Cron problem

Questions regarding the Command Line Interface
CLI
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
farzin12
Posts: 1
Joined: Mon Nov 02, 2020 12:06 pm

Os: CentOS 7x
Web: apache
Cron problem
  • Quote

Post by farzin12 » Mon Nov 02, 2020 12:20 pm

hi there, first of all thanks for your greate work

i'm using a bash script to create new user
code:

Code: Select all

#!/bin/bash
PATH=$PATH:$HOME/bin
PATH=$PATH:/usr/local/vesta/bin
v-add-user apiUser21 p@sSWorb apiUser21@m.com

if i run this code by sh [filename.sh] it'll work without any problem
but when running it through incron, the user wont be added to my users list only a folder with the name of user will be created on my "/" for example "/apiUser21" which is wrong, can anyone please help me ?
(my incron is working when i'm using linux base commands: rm, cp, mkdir, unzip...)
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “CLI”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password