Difference between revisions of "Create an ibay manually"

From SME Server
Jump to navigationJump to search
(Page init)
 
m (add uid)
Line 3: Line 3:
  
 
  #!/bin/bash
 
  #!/bin/bash
  #Configure the new ibay "test"
+
  #Get correct Uid
   
+
  uid=`perl -Mesmith::AccountsDB -e 'my $accountdb = esmith::AccountsDB->open(); print $accountdb->get_next_uid();'`
  next_id=$(config get MinUid)
 
let "new_next_id = next_id + 1"
 
config set MinUid $new_next_id
 
 
   
 
   
 
  #Populate the accounts db
 
  #Populate the accounts db
 
  db accounts set test ibay Name test \
 
  db accounts set test ibay Name test \
 
  Group admin UserAccess wr-group-rd-everyone \
 
  Group admin UserAccess wr-group-rd-everyone \
  Uid $next_id Gid $next_id CgiBin enabled PasswordSet no \
+
  Uid $uid Gid $uid CgiBin enabled PasswordSet no \
 
  SSL enabled PublicAccess global \
 
  SSL enabled PublicAccess global \
 
   
 
   

Revision as of 13:13, 9 March 2017

If you would like to create an ibay by means of a bash script:


#!/bin/bash
#Get correct Uid
uid=`perl -Mesmith::AccountsDB -e 'my  $accountdb = esmith::AccountsDB->open(); print $accountdb->get_next_uid();'`

#Populate the accounts db
db accounts set test ibay Name test \
Group admin UserAccess wr-group-rd-everyone \
Uid $uid Gid $uid CgiBin enabled PasswordSet no \
SSL enabled PublicAccess global \

#Create the "test" ibay
signal-event ibay-create test

exit