correction commandes et controle d'errur de base

main
Thibodeau Bruno 3 years ago
parent 00ea24b5c5
commit 422011c151

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

Loading…
Cancel
Save