Skip to content

Commit

Permalink
Don't overwrite subdomain.conf if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
curtishall authored Sep 15, 2021
1 parent 437fc30 commit 57bea75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions misc/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,12 @@ case "$1" in
echo "tw5864" >> /etc/modules
fi
fi

# If subdomain.conf exists don't use snakeoil

if test -f "/usr/share/bluecherry/nginx-includes/subdomain.conf"; then
sed -i 's/snakeoil.conf/subdomain.conf/g' /etc/nginx/sites-enabled/bluecherry.conf
fi

# Install pip3 dependencies
pip3 install --user setuptools_rust certbot certbot-dns-subdomain-provider
Expand Down

0 comments on commit 57bea75

Please sign in to comment.