Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
f688815c
Commit
f688815c
authored
8 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Fixed APT cache url (refs
#20417
).
parent
e6ec9205
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
2.Common_services/5.Nginx/vhost_skyreach.conf
+1
-1
1 addition, 1 deletion
2.Common_services/5.Nginx/vhost_skyreach.conf
3.New_server_deployment/4.APT_upgrade/0_setup.sh
+4
-4
4 additions, 4 deletions
3.New_server_deployment/4.APT_upgrade/0_setup.sh
global-conf.sh
+1
-1
1 addition, 1 deletion
global-conf.sh
with
6 additions
and
6 deletions
2.Common_services/5.Nginx/vhost_skyreach.conf
+
1
−
1
View file @
f688815c
...
...
@@ -52,7 +52,7 @@ server {
}
# APT proxy
location
/
apt
{
location
~ ^/
apt
/(
http
|
https
)/([\
w
\.\-\
_
]+.
ubuntu
.
com
/
ubuntu
|
panel
.
ubicast
.
eu
/
packaging
/
apt
)/(.*)$ {
location
~ ^/
apt
/(
http
|
https
)/([\
w
\.\-\
_
]+.
ubuntu
.
com
/
ubuntu
|
ftp
.
debian
.
org
/
debian
|
mozilla
.
debian
.
net
|
panel
.
ubicast
.
eu
/
packaging
/
apt
)/(.*)$ {
resolver
127
.
0
.
0
.
1
;
proxy_pass
$
1
://$
2
/$
3
;
proxy_cache
uc
-
apt
-
cache
;
...
...
This diff is collapsed.
Click to expand it.
3.New_server_deployment/4.APT_upgrade/0_setup.sh
+
4
−
4
View file @
f688815c
...
...
@@ -15,10 +15,10 @@ if ( rgrep '14.04' /etc/lsb-release >/dev/null ); then
fi
# modify sources.list to use ubicast cache
if
(
!
test
-z
${
APT_CACHE_
HOST
}
)
;
then
if
(
!
grep
"
${
APT_CACHE_
HOST
}
"
/etc/apt/sources.list
>
/dev/null
)
;
then
echo
"Updating /etc/apt/sources.list to use cache
${
APT_CACHE_
HOST
}
."
sed
-i
"s@http://@
http://
${
APT_CACHE_
HOST
}
/
@"
/etc/apt/sources.list
if
(
!
test
-z
${
APT_CACHE_
URL
}
)
;
then
if
(
!
grep
"
${
APT_CACHE_
URL
}
"
/etc/apt/sources.list
>
/dev/null
)
;
then
echo
"Updating /etc/apt/sources.list to use cache
${
APT_CACHE_
URL
}
."
sed
-i
"s@http://@
${
APT_CACHE_
URL
}
@"
/etc/apt/sources.list
fi
fi
...
...
This diff is collapsed.
Click to expand it.
global-conf.sh
+
1
−
1
View file @
f688815c
...
...
@@ -22,7 +22,7 @@ NTP_SERVER='ntp.ubuntu.com'
SSL_CERTIFICATE
=
'/etc/ssl/certs/ssl-cert-snakeoil.pem'
SSL_CERTIFICATE_KEY
=
'/etc/ssl/private/ssl-cert-snakeoil.key'
# APT sources
APT_CACHE_
HOST
=
APT_CACHE_
URL
=
# -- Shell --
# ubicast shell account
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment