-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing: Acme script breaking during install on Ubuntu with Apache and with configured server FQDN #14527
Open
cypherpork
wants to merge
8
commits into
jitsi:master
Choose a base branch
from
cypherpork:fixing-documentroot-port80-apache
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fixing: Acme script breaking during install on Ubuntu with Apache and with configured server FQDN #14527
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3a71ab9
Added proper document root. Removed redirect.
cypherpork c675bd0
let's try with redirect first...
cypherpork 3510922
Revert "let's try with redirect first..."
cypherpork d10dba9
Added checking for conflict with Apache default
cypherpork 9017469
Update jitsi-meet.example-apache
cypherpork f61049d
Need to enable default site back even if acme process broke
cypherpork c7c2258
Merge branch 'jitsi:master' into fixing-documentroot-port80-apache
cypherpork 9f90028
one less line of code...
cypherpork File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,17 @@ elif [ "$OPENRESTY_INSTALL_CHECK" = "installed" ] || [ "$OPENRESTY_INSTALL_CHECK | |
RELOAD_CMD="systemctl force-reload openresty.service" | ||
elif [ "$APACHE_INSTALL_CHECK" = "installed" ] || [ "$APACHE_INSTALL_CHECK" = "unpacked" ] ; then | ||
RELOAD_CMD="systemctl force-reload apache2.service" | ||
|
||
if [[ "$(hostname)" == "$DOMAIN" ]]; then | ||
DEFAULT_SITE_CONF="/etc/apache2/sites-enabled/000-default.conf" | ||
if [[ -f "$DEFAULT_SITE_CONF" ]]; then # Checks if the default site is enabled | ||
echo "Default Apache site may conflict with Let's Encrypt process" | ||
a2dissite 000-default.conf && ${RELOAD_CMD} | ||
ENABLEDEFAULT_CMD="a2ensite 000-default.conf && ${RELOAD_CMD}" | ||
echo "Disabled default Apache site" | ||
fi | ||
fi | ||
|
||
else | ||
RELOAD_CMD="echo 'No webserver found'" | ||
fi | ||
|
@@ -72,3 +83,11 @@ if [ ${ISSUE_FAILED_CODE} -ne 0 ] ; then | |
else | ||
eval "$INSTALL_CERT_CMD" | ||
fi | ||
|
||
if [[ -n "$ENABLEDEFAULT_CMD" ]]; then | ||
echo "Cleanup: Enabling default Apache site back" | ||
eval "$ENABLEDEFAULT_CMD" | ||
ENABLEDEFAULT_CMD= | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hum, you enable it back ... why is the 000-default.conf a problem actually? |
||
echo "Cleanup succeeded" | ||
fi | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the jitsi-meet package should be touching that configuration, people maybe using it for some other stuff.
If you think that maybe a problem we should print some warning to inform the user, so the user can decide what to do.