Create an ibay manually

From SME Server
Revision as of 13:13, 9 March 2017 by RequestedDeletion (talk | contribs) (add uid)
Jump to navigation Jump to search

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