This will add support for Tanglu, a Debian based Linux-distribution.
Docker-DCO-1.1-Signed-off-by: Matthias Klumpp <matthias@tenstral.net> (github: Ximion)
| ... | ... |
@@ -44,6 +44,8 @@ debianStable=wheezy |
| 44 | 44 |
debianUnstable=sid |
| 45 | 45 |
# this should match the name found at http://releases.ubuntu.com/ |
| 46 | 46 |
ubuntuLatestLTS=precise |
| 47 |
+# this should match the name found at http://releases.tanglu.org/ |
|
| 48 |
+tangluLatest=aequorea |
|
| 47 | 49 |
|
| 48 | 50 |
while getopts v:i:a:p:dst name; do |
| 49 | 51 |
case "$name" in |
| ... | ... |
@@ -201,6 +203,13 @@ if [ -z "$strictDebootstrap" ]; then |
| 201 | 201 |
s/ $suite-updates main/ ${suite}-security main/
|
| 202 | 202 |
" etc/apt/sources.list |
| 203 | 203 |
;; |
| 204 |
+ Tanglu) |
|
| 205 |
+ # add the updates repository |
|
| 206 |
+ if [ "$suite" = "$tangluLatest" ]; then |
|
| 207 |
+ # ${suite}-updates only applies to stable Tanglu versions
|
|
| 208 |
+ sudo sed -i "p; s/ $suite main$/ ${suite}-updates main/" etc/apt/sources.list
|
|
| 209 |
+ fi |
|
| 210 |
+ ;; |
|
| 204 | 211 |
esac |
| 205 | 212 |
fi |
| 206 | 213 |
|
| ... | ... |
@@ -248,6 +257,19 @@ else |
| 248 | 248 |
fi |
| 249 | 249 |
fi |
| 250 | 250 |
;; |
| 251 |
+ Tanglu) |
|
| 252 |
+ if [ "$suite" = "$tangluLatest" ]; then |
|
| 253 |
+ # tag latest |
|
| 254 |
+ $docker tag $repo:$suite $repo:latest |
|
| 255 |
+ fi |
|
| 256 |
+ if [ -r etc/lsb-release ]; then |
|
| 257 |
+ lsbRelease="$(. etc/lsb-release && echo "$DISTRIB_RELEASE")" |
|
| 258 |
+ if [ "$lsbRelease" ]; then |
|
| 259 |
+ # tag specific Tanglu version number, if available (1.0, 2.0, etc.) |
|
| 260 |
+ $docker tag $repo:$suite $repo:$lsbRelease |
|
| 261 |
+ fi |
|
| 262 |
+ fi |
|
| 263 |
+ ;; |
|
| 251 | 264 |
esac |
| 252 | 265 |
fi |
| 253 | 266 |
fi |