Updted CHANGELOG.md
parent
34582d5199
commit
a35d49e483
|
|
@ -159,8 +159,20 @@ elif [ "$1" = "configure" ] && [ -n "$2" ]; then
|
|||
php bin/console cache:clear
|
||||
echo ">>> Configurando servidor web y servicios"
|
||||
[ ! -L /etc/nginx/sites-enabled/ogcore.conf ] && ln -s /opt/opengnsys/ogcore/etc/nginx/sites-available/ogcore.conf /etc/nginx/sites-enabled/ogcore.conf
|
||||
[ ! -L /etc/nginx/sites-enabled/mercure.conf ] && ln -s /opt/opengnsys/ogcore/etc/nginx/sites-available/mercure.conf /etc/nginx/sites-enabled/mercure.conf
|
||||
[ ! -L /etc/php/8.3/fpm/pool.d/ogcore-fpm.conf ] && ln -s /opt/opengnsys/ogcore/etc/php/8.3/fpm/pool.d/ogcore-fpm.conf /etc/php/8.3/fpm/pool.d/ogcore-fpm.conf
|
||||
[ ! -L /etc/systemd/system/og-mercure.service ] && ln -s /opt/opengnsys/ogcore/etc/systemd/system/og-mercure.service /etc/systemd/system/og-mercure.service
|
||||
[ ! -L /etc/systemd/system/journal-pull@.service ] && ln -s /opt/opengnsys/ogcore/etc/systemd/system/journal-pull@.service /etc/systemd/system/journal-pull@.service
|
||||
[ ! -L /etc/systemd/system/journal-pull-sync.path ] && ln -s /opt/opengnsys/ogcore/etc/systemd/system/journal-pull-sync.path /etc/systemd/system/journal-pull-sync.path
|
||||
[ ! -L /etc/systemd/system/journal-pull-sync.service ] && ln -s /opt/opengnsys/ogcore/etc/systemd/system/journal-pull-sync.service /etc/systemd/system/journal-pull-sync.service
|
||||
[ ! -L /etc/logrotate.d/journal-pull ] && ln -s /opt/opengnsys/ogcore/etc/logrotate.d/journal-pull /etc/logrotate.d/journal-pull
|
||||
chmod +x /opt/opengnsys/ogcore/etc/bin/journal-pull-sync.sh
|
||||
if [ ! -f /opt/opengnsys/ogcore/etc/journal-pull-sources.conf ]; then
|
||||
touch /opt/opengnsys/ogcore/etc/journal-pull-sources.conf
|
||||
chown www-data:www-data /opt/opengnsys/ogcore/etc/journal-pull-sources.conf
|
||||
chmod 664 /opt/opengnsys/ogcore/etc/journal-pull-sources.conf
|
||||
fi
|
||||
[ ! -d /var/log/journal/remote ] && mkdir -p /var/log/journal/remote && chown systemd-journal-remote:systemd-journal-remote /var/log/journal/remote
|
||||
echo ">>> Configurando permisos de archivos"
|
||||
chown opengnsys:www-data /opt/opengnsys/
|
||||
chown -R opengnsys:www-data /opt/opengnsys/ogcore
|
||||
|
|
@ -175,6 +187,10 @@ elif [ "$1" = "configure" ] && [ -n "$2" ]; then
|
|||
chown root:root /etc/cron.d/opengnsys-check-clients
|
||||
fi
|
||||
systemctl enable og-mercure
|
||||
systemctl enable --now journal-pull-sync.path 2>/dev/null || true
|
||||
usermod -aG systemd-journal opengnsys 2>/dev/null || true
|
||||
usermod -aG systemd-journal-remote opengnsys 2>/dev/null || true
|
||||
chmod -R 775 /opt/opengnsys/ogcore/api/var/ 2>/dev/null || true
|
||||
systemctl daemon-reload
|
||||
systemctl restart og-mercure
|
||||
systemctl restart php8.3-fpm
|
||||
|
|
|
|||
Loading…
Reference in New Issue