Skip to content
Snippets Groups Projects
Verified Commit e9a29a83 authored by David Beniamine's avatar David Beniamine
Browse files

Fix collabora upgrade

parent fd45370c
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
SCRIPT_DIRECTORY=$(dirname $0) SCRIPT_DIRECTORY=$(dirname $0)
if [ -z "$(grep 'capabilities') /etc/apache2/sites-available/collabora.conf" ]; then if [ -z "$(grep 'capabilities' /etc/apache2/sites-available/collabora.conf)" ]; then
cp $SCRIPT_DIRECTORY/etc/apache2/sites-available/collabora.conf /etc/apache2/sites-available/ cp $SCRIPT_DIRECTORY/etc/apache2/sites-available/collabora.conf /etc/apache2/sites-available/
sed -ie "s/\(ServerName\) .*/\1 collabora.${DOMAIN}/" /etc/apache2/sites-available/collabora.conf
a2dissite collabora-le-ssl.conf
rm /etc/apache2/sites-available/collabora-le-ssl.conf
certbot install certbot install
fi fi
systemctl stop collabora systemctl stop collabora
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment