Update install script for alpine 3.17
This commit is contained in:
10
install.sh
10
install.sh
@@ -7,7 +7,7 @@ cd "$( dirname "$0" )"
|
|||||||
if [ -z ${DistoBuilderINT+x} ]; then
|
if [ -z ${DistoBuilderINT+x} ]; then
|
||||||
ResourceFolder=/tmp
|
ResourceFolder=/tmp
|
||||||
#Install required software
|
#Install required software
|
||||||
apk add dovecot php8-xml php8-fpm php8-curl php8-dom php8-zip php8-mbstring php-openssl py3-pip sudo curl openssl
|
apk add dovecot php81-xml php81-fpm php81-curl php81-dom php81-zip php81-mbstring php81-openssl py3-pip sudo curl openssl
|
||||||
#Install Nginx and Nginx Repo
|
#Install Nginx and Nginx Repo
|
||||||
wget https://nginx.org/keys/nginx_signing.rsa.pub -O /etc/apk/keys/nginx_signing.rsa.pub
|
wget https://nginx.org/keys/nginx_signing.rsa.pub -O /etc/apk/keys/nginx_signing.rsa.pub
|
||||||
echo "@nginx http://nginx.org/packages/mainline/alpine/v$(egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories
|
echo "@nginx http://nginx.org/packages/mainline/alpine/v$(egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories
|
||||||
@@ -36,8 +36,8 @@ mkdir /mail
|
|||||||
chmod 777 /mail
|
chmod 777 /mail
|
||||||
|
|
||||||
#Configure Php-fpm
|
#Configure Php-fpm
|
||||||
rm /etc/php8/php-fpm.d/*
|
rm /etc/php81/php-fpm.d/*
|
||||||
mv Configs/php.conf /etc/php8/php-fpm.d/railoop.conf
|
mv Configs/php.conf /etc/php81/php-fpm.d/railoop.conf
|
||||||
|
|
||||||
#Install Webmail
|
#Install Webmail
|
||||||
mkdir -p /opt/webmail/data/_data_/_default_/configs /opt/webmail/data/_data_/_default_/domains
|
mkdir -p /opt/webmail/data/_data_/_default_/configs /opt/webmail/data/_data_/_default_/domains
|
||||||
@@ -73,10 +73,10 @@ rm -f /tmp/olim3.tar.gz /tmp/smc.tar.gz
|
|||||||
#Start and enable service
|
#Start and enable service
|
||||||
rc-update add dovecot
|
rc-update add dovecot
|
||||||
rc-update add nginx
|
rc-update add nginx
|
||||||
rc-update add php-fpm8
|
rc-update add php-fpm81
|
||||||
|
|
||||||
if [ -z ${DistoBuilderINT+x} ]; then
|
if [ -z ${DistoBuilderINT+x} ]; then
|
||||||
service dovecot start
|
service dovecot start
|
||||||
service nginx start
|
service nginx start
|
||||||
service php-fpm8 start
|
service php-fpm81 start
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user