|
|
|
|
@ -14,10 +14,10 @@ cd ~
|
|
|
|
|
|
|
|
|
|
#install modules de base
|
|
|
|
|
#dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
|
|
|
|
|
dnf -y module enable php:8.0
|
|
|
|
|
dnf -y in php php-mysqli php-gd php-gettext php-imap php-json php-mbstring php-xml php-apc mariadb-server mariadb nginx php-fpm git
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dnf -y module enable php:8.0 && \
|
|
|
|
|
dnf -y in php php-mysqli php-gd php-gettext php-imap php-json php-mbstring php-xml php-apc mariadb-server mariadb nginx php-fpm git && \
|
|
|
|
|
\
|
|
|
|
|
\
|
|
|
|
|
cat <<EOF >> /etc/nginx/conf.d/osticket
|
|
|
|
|
# Rewrite all requests from HTTP to HTTPS
|
|
|
|
|
server {
|
|
|
|
|
@ -82,35 +82,35 @@ cat <<EOF >> /etc/nginx/conf.d/osticket
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
systemctl enable --now mariadb
|
|
|
|
|
systemctl enable --now nginx
|
|
|
|
|
systemctl enable --now php-fpm
|
|
|
|
|
|
|
|
|
|
EOF && \
|
|
|
|
|
\
|
|
|
|
|
\
|
|
|
|
|
systemctl enable --now mariadb && \
|
|
|
|
|
systemctl enable --now nginx && \
|
|
|
|
|
systemctl enable --now php-fpm && \
|
|
|
|
|
\
|
|
|
|
|
#copie de la source
|
|
|
|
|
git clone https://github.com/osTicket/osTicket.git
|
|
|
|
|
cd osTicket
|
|
|
|
|
git checkout $ostver
|
|
|
|
|
git pull
|
|
|
|
|
|
|
|
|
|
git clone https://github.com/osTicket/osTicket.git && \
|
|
|
|
|
cd osTicket && \
|
|
|
|
|
git checkout $ostver && \
|
|
|
|
|
git pull && \
|
|
|
|
|
\
|
|
|
|
|
#setup / deploiement
|
|
|
|
|
mkdir -p $ostdir
|
|
|
|
|
chown -R nginx:nginx $ostdir
|
|
|
|
|
chmod -R a+rX $ostdir
|
|
|
|
|
chmod -R u+rw $ostdir
|
|
|
|
|
|
|
|
|
|
php manage.php deploy --setup $ostdir
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
|
mkdir -p $ostdir && \
|
|
|
|
|
chown -R nginx:nginx $ostdir && \
|
|
|
|
|
chmod -R a+rX $ostdir && \
|
|
|
|
|
chmod -R u+rw $ostdir && \
|
|
|
|
|
\
|
|
|
|
|
php manage.php deploy --setup $ostdir && \
|
|
|
|
|
cd .. && \
|
|
|
|
|
\
|
|
|
|
|
# Setup Official Plugins
|
|
|
|
|
git clone -b develop https://github.com/osTicket/osTicket-plugins $ostpluginsrc
|
|
|
|
|
cd $ostpluginsrc
|
|
|
|
|
php make.php hydrate
|
|
|
|
|
for plugin in $(find * -maxdepth 0 -type d ! -path doc ! -path lib); do cp -r ${plugin} $ostdir/include/plugins; done;
|
|
|
|
|
cp -R $ostpluginsrc/*.phar $ostdir/include/plugins/
|
|
|
|
|
cd ~
|
|
|
|
|
git clone -b develop https://github.com/osTicket/osTicket-plugins $ostpluginsrc && \
|
|
|
|
|
cd $ostpluginsrc && \
|
|
|
|
|
php make.php hydrate && \
|
|
|
|
|
for plugin in $(find * -maxdepth 0 -type d ! -path doc ! -path lib); do cp -r ${plugin} $ostdir/include/plugins; done; && \
|
|
|
|
|
cp -R $ostpluginsrc/*.phar $ostdir/include/plugins/ && \
|
|
|
|
|
cd ~ && \
|
|
|
|
|
# Add Community Plugins
|
|
|
|
|
## Archiver
|
|
|
|
|
git clone https://github.com/clonemeagain/osticket-plugin-archiver $ostdir/include/plugins/archiver && \
|
|
|
|
|
@ -139,9 +139,7 @@ cd ~
|
|
|
|
|
\
|
|
|
|
|
### Log Miscellany Installation
|
|
|
|
|
touch /var/log/msmtp.log && \
|
|
|
|
|
chown nginx:nginx /var/log/msmtp.log && \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chown nginx:nginx /var/log/msmtp.log
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##update
|
|
|
|
|
|