12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #!/bin/sh
- echo '
- __ __ _ _
- | \/ |__ _(_) |
- | |\/| / _` | | |
- |_| |_\__,_|_|_|
- '
- echo "Enable mail sending for php"
- . bin/checkroot.sh
- _cwd="$(pwd)"
- _assets="$_cwd/assets"
- if [ ! -d "$_assets" ]; then
- _assets="$_cwd/../assets"
- if [ ! -d "$_assets" ]; then
- echo "!! can't find assets directory !!"
- exit
- fi
- fi
- sleep 2
- apk add mailx postfix
- mkdir /var/mail
- postmap /etc/postfix/aliases
- rc-update add postfix
- /etc/init.d/postfix start
|