Cron problem
Posted: 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:
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...)
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...)