move mini_sendmail to sbin
This commit is contained in:
parent
dc11608f1b
commit
5bce74f6fd
|
@ -15,3 +15,9 @@ cp mini_sendmail /usr/local/bin
|
|||
gzip mini_sendmail.8
|
||||
cp mini_sendmail.8.gz /usr/local/share/man/man8
|
||||
```
|
||||
|
||||
# configure a minimal smtp server so automated emails (cron etc) can be sent
|
||||
apt -y install exim4-daemon-light mailutils
|
||||
sed -i "s|dc_eximconfig_configtype='local'|dc_eximconfig_configtype='internet'|g" /etc/exim4/update-exim4.conf.conf
|
||||
/usr/sbin/update-exim4.conf
|
||||
systemctl restart exim4
|
||||
|
|
|
@ -57,7 +57,7 @@ echo rm -r /usr/jails/$username
|
|||
# (re)create jail
|
||||
echo jk_init -k -j /usr/jails/$username shellstack
|
||||
echo mkdir -p /usr/jails/$username/opt /usr/jails/$username/usr/sbin /usr/jails/$username/tmp /usr/jails/$username/var/www
|
||||
echo ln -s /usr/local/bin/mini_sendmail /usr/jails/$username/usr/sbin/sendmail
|
||||
echo ln -s /usr/local/sbin/mini_sendmail /usr/jails/$username/usr/sbin/sendmail
|
||||
echo chmod a+rwx /usr/jails/$username/tmp
|
||||
echo install -d -o $username -g $username -m 755 /usr/jails/$username/home/$username
|
||||
echo jk_jailuser -n -j /usr/jails/$username -s /bin/bash $username
|
||||
|
|
|
@ -37,7 +37,7 @@ fi
|
|||
|
||||
jk_init -k -j /usr/jails/$username shellstack
|
||||
mkdir -p /usr/jails/$username/opt /usr/jails/$username/usr/sbin /usr/jails/$username/tmp /usr/jails/$username/var/www
|
||||
ln -s /usr/local/bin/mini_sendmail /usr/jails/$username/usr/sbin/sendmail
|
||||
ln -s /usr/local/sbin/mini_sendmail /usr/jails/$username/usr/sbin/sendmail
|
||||
chmod a+rwx /usr/jails/$username/tmp
|
||||
install -d -o $username -g $username -m 755 /usr/jails/$username/home/$username
|
||||
mount --bind /home/$username /usr/jails/$username/home/$username
|
||||
|
|
Loading…
Reference in New Issue
Block a user