Commit b5f7c8ca authored by Andrew Lee's avatar Andrew Lee

debian/obs-api.postinst: add a fallback hostname to make it installs in autopkgtest.

Signed-off-by: Andrew Lee's avatarAndrew Lee (李健秋) <>
parent c62b0ef4
......@@ -13,7 +13,7 @@ fi
# Place api and repo url on index page
if [ ! -f /usr/share/obs/overview/index.html ] ; then
FQHOSTNAME=`hostname -f`
FQHOSTNAME=`hostname -f` || FQHOSTNAME=obs-api
sed -e "s,___API_URL___,https://$FQHOSTNAME,g" \
-e "s,___REPO_URL___,http://$FQHOSTNAME:82,g" \
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