Compare commits

...

2 Commits

Author SHA1 Message Date
Nícolas Pastorello
da6ac36b02
Update glpi-install.sh
Changed cron
2025-01-03 22:03:40 -03:00
Nícolas Pastorello
e5c6ae71af
Update glpi-install.sh
Adjusted apt install
2025-01-03 21:48:48 -03:00

View File

@ -19,8 +19,8 @@ $STD apt-get install -y \
sudo \
mc \
apache2 \
php \
php-{apcu,cli,common,curl,gd,imap,ldap,mysql,xmlrpc,xml,mbstring,bcmath,intl,zip,redis,bz2,soap,cas} \
php8.2-{apcu,cli,common,curl,gd,imap,ldap,mysql,xmlrpc,xml,mbstring,bcmath,intl,zip,redis,bz2,soap} \
php-cas \
libapache2-mod-php \
mariadb-server
msg_ok "Installed Dependencies"
@ -127,9 +127,9 @@ a2enmod rewrite
a2ensite glpi.conf
msg_ok "Configured VirtualHost"
msg_info "Setting Cron task"
echo "*/2 * * * * www-data /usr/bin/php /opt/glpi/front/cron.php &>/dev/null" >> /etc/cron.d/glpi
msg_ok "Configured Cron task"
msg_info "Setting Automatic Actions"
(crontab -l 2>/dev/null; echo "* * * * * php /opt/glpi/front/cron.php") | crontab -
msg_ok "Configured Automatic Actions"
msg_info "Changing parameters in php.ini"
PHP_VERSION=$(ls /etc/php/ | grep -E '^[0-9]+\.[0-9]+$' | head -n 1)