Commit b91f4e9f authored by Lucas Kanashiro's avatar Lucas Kanashiro

debian/obs-api.postinst: enable obs apache2 site config

parent b00d896c
......@@ -58,6 +58,12 @@ dbc_generate_include_args="-o template_infile=/usr/share/obs/api/config/database
dbc_go obs-api $@
# Test whether a2ensite is available (and thus also apache2ctl).
if [ -x "$(command -v a2ensite)" ]; then
# Enable the obs site
a2ensite obs.conf > /dev/null
echo "OBS api installed. Please see /usr/share/doc/obs-api/README.Debian for the rest of setup."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment