Skip to content
Snippets Groups Projects
Commit 6e029157 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Added skyreach APT token

parent 832b1f66
No related branches found
No related tags found
No related merge requests found
......@@ -57,10 +57,10 @@ fi
systemctl unmask nginx || true
# APT panel
if ( ! test -z ${SKYREACH_API_KEY} ); then
if ( ! test -z ${SKYREACH_APT_TOKEN} ); then
echo "Adding skyreach.list to APT sources."
wget -q "https://${SKYREACH_HOST}/media/public.gpg" -O- | sudo apt-key add -
echo "deb https://${SKYREACH_HOST} packaging/apt/${SKYREACH_API_KEY}/" > /etc/apt/sources.list.d/skyreach.list
echo "deb https://${SKYREACH_HOST} packaging/apt/${SKYREACH_APT_TOKEN}/" > /etc/apt/sources.list.d/skyreach.list
fi
# update
......
......@@ -11,6 +11,7 @@ ENVSETUP_BRANCH='stable'
SKYREACH_HOST='panel.ubicast.eu'
SKYREACH_SSL_VERIFY='1'
SKYREACH_API_KEY=
SKYREACH_APT_TOKEN=
SKYREACH_ACTIVATION_KEY=
# NTP
NTP_SERVER='0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org,3.pool.ntp.org'
......
......@@ -49,7 +49,7 @@ if content:
if not url or not apt_token:
print('The file "%s" is not correct: skyreach url not found.' % apt_source)
sys.exit(1)
print('SkyReach url is %s and API key is %s[...].' % (url, apt_token[:8]))
print('SkyReach url is "%s" and APT token is "%s[...]".' % (url, apt_token[:8]))
# Test SkyReach responses
req = requests.get(url, verify=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment