|
|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
#Pensé pour CentOS Stream 8
|
|
|
|
|
#Pensé pour Fedora 36
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############################
|
|
|
|
|
@ -8,13 +8,15 @@
|
|
|
|
|
ostver="v1.16.3"
|
|
|
|
|
ostdir="/var/www/osticket"
|
|
|
|
|
ostpluginsrc="/usr/src/osticket/plugins"
|
|
|
|
|
webuser="nginx"
|
|
|
|
|
webgroup="nginx"
|
|
|
|
|
############################
|
|
|
|
|
|
|
|
|
|
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 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 && \
|
|
|
|
|
\
|
|
|
|
|
\
|
|
|
|
|
@ -97,7 +99,7 @@ git pull && \
|
|
|
|
|
\
|
|
|
|
|
#setup / deploiement
|
|
|
|
|
mkdir -p $ostdir && \
|
|
|
|
|
chown -R nginx:nginx $ostdir && \
|
|
|
|
|
chown -R $webuser:$webgroup $ostdir && \
|
|
|
|
|
chmod -R a+rX $ostdir && \
|
|
|
|
|
chmod -R u+rw $ostdir && \
|
|
|
|
|
\
|
|
|
|
|
@ -139,7 +141,7 @@ cd ~ && \
|
|
|
|
|
\
|
|
|
|
|
### Log Miscellany Installation
|
|
|
|
|
touch /var/log/msmtp.log && \
|
|
|
|
|
chown nginx:nginx /var/log/msmtp.log
|
|
|
|
|
chown $webuser:$webgroup /var/log/msmtp.log
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##update
|
|
|
|
|
|