Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
96283b54
Unverified
Commit
96283b54
authored
Feb 19, 2014
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
templates: Fix bashisms in common code
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
95ab9daa
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
31 additions
and
31 deletions
+31
-31
lxc-altlinux.in
templates/lxc-altlinux.in
+2
-2
lxc-archlinux.in
templates/lxc-archlinux.in
+2
-2
lxc-busybox.in
templates/lxc-busybox.in
+2
-2
lxc-centos.in
templates/lxc-centos.in
+3
-3
lxc-cirros.in
templates/lxc-cirros.in
+2
-2
lxc-debian.in
templates/lxc-debian.in
+2
-2
lxc-download.in
templates/lxc-download.in
+2
-2
lxc-fedora.in
templates/lxc-fedora.in
+2
-2
lxc-gentoo.in
templates/lxc-gentoo.in
+2
-2
lxc-openmandriva.in
templates/lxc-openmandriva.in
+2
-2
lxc-opensuse.in
templates/lxc-opensuse.in
+2
-2
lxc-oracle.in
templates/lxc-oracle.in
+2
-2
lxc-plamo.in
templates/lxc-plamo.in
+2
-2
lxc-sshd.in
templates/lxc-sshd.in
+2
-2
lxc-ubuntu.in
templates/lxc-ubuntu.in
+2
-2
No files found.
templates/lxc-altlinux.in
View file @
96283b54
...
...
@@ -26,8 +26,8 @@
# Detect use under userns (unsupported)
for
arg
in
"
$@
"
;
do
[
"
$arg
"
=
=
"--"
]
&&
break
if
[
"
$arg
"
=
=
"--mapped-uid"
-o
"
$arg
"
=
=
"--mapped-gid"
]
;
then
[
"
$arg
"
=
"--"
]
&&
break
if
[
"
$arg
"
=
"--mapped-uid"
-o
"
$arg
"
=
"--mapped-gid"
]
;
then
echo
"This template can't be used for unprivileged containers."
1>&2
echo
"You may want to try the
\"
download
\"
template instead."
1>&2
exit
1
...
...
templates/lxc-archlinux.in
View file @
96283b54
...
...
@@ -27,8 +27,8 @@
# Detect use under userns (unsupported)
for
arg
in
"
$@
"
;
do
[
"
$arg
"
=
=
"--"
]
&&
break
if
[
"
$arg
"
=
=
"--mapped-uid"
-o
"
$arg
"
=
=
"--mapped-gid"
]
;
then
[
"
$arg
"
=
"--"
]
&&
break
if
[
"
$arg
"
=
"--mapped-uid"
-o
"
$arg
"
=
"--mapped-gid"
]
;
then
echo
"This template can't be used for unprivileged containers."
1>&2
echo
"You may want to try the
\"
download
\"
template instead."
1>&2
exit
1
...
...
templates/lxc-busybox.in
View file @
96283b54
...
...
@@ -22,8 +22,8 @@
# Detect use under userns (unsupported)
for
arg
in
"
$@
"
;
do
[
"
$arg
"
=
=
"--"
]
&&
break
if
[
"
$arg
"
=
=
"--mapped-uid"
-o
"
$arg
"
=
=
"--mapped-gid"
]
;
then
[
"
$arg
"
=
"--"
]
&&
break
if
[
"
$arg
"
=
"--mapped-uid"
-o
"
$arg
"
=
"--mapped-gid"
]
;
then
echo
"This template can't be used for unprivileged containers."
1>&2
echo
"You may want to try the
\"
download
\"
template instead."
1>&2
exit
1
...
...
templates/lxc-centos.in
View file @
96283b54
...
...
@@ -19,7 +19,7 @@
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public
...
...
@@ -74,8 +74,8 @@ lxc_network_link=lxcbr0
# Detect use under userns (unsupported)
for
arg
in
"
$@
"
;
do
[
"
$arg
"
=
=
"--"
]
&&
break
if
[
"
$arg
"
=
=
"--mapped-uid"
-o
"
$arg
"
=
=
"--mapped-gid"
]
;
then
[
"
$arg
"
=
"--"
]
&&
break
if
[
"
$arg
"
=
"--mapped-uid"
-o
"
$arg
"
=
"--mapped-gid"
]
;
then
echo
"This template can't be used for unprivileged containers."
1>&2
echo
"You may want to try the
\"
download
\"
template instead."
1>&2
exit
1
...
...
templates/lxc-cirros.in
View file @
96283b54
...
...
@@ -23,8 +23,8 @@
# Detect use under userns (unsupported)
for
arg
in
"
$@
"
;
do
[
"
$arg
"
=
=
"--"
]
&&
break
if
[
"
$arg
"
=
=
"--mapped-uid"
-o
"
$arg
"
=
=
"--mapped-gid"
]
;
then
[
"
$arg
"
=
"--"
]
&&
break
if
[
"
$arg
"
=
"--mapped-uid"
-o
"
$arg
"
=
"--mapped-gid"
]
;
then
echo
"This template can't be used for unprivileged containers."
1>&2
echo
"You may want to try the
\"
download
\"
template instead."
1>&2
exit
1
...
...
templates/lxc-debian.in
View file @
96283b54
...
...
@@ -22,8 +22,8 @@
# Detect use under userns (unsupported)
for
arg
in
"
$@
"
;
do
[
"
$arg
"
=
=
"--"
]
&&
break
if
[
"
$arg
"
=
=
"--mapped-uid"
-o
"
$arg
"
=
=
"--mapped-gid"
]
;
then
[
"
$arg
"
=
"--"
]
&&
break
if
[
"
$arg
"
=
"--mapped-uid"
-o
"
$arg
"
=
"--mapped-gid"
]
;
then
echo
"This template can't be used for unprivileged containers."
1>&2
echo
"You may want to try the
\"
download
\"
template instead."
1>&2
exit
1
...
...
templates/lxc-download.in
View file @
96283b54
...
...
@@ -301,7 +301,7 @@ if [ "$DOWNLOAD_LIST_IMAGES" = "true" ] || \
# Parse it
echo
""
echo
"---"
echo
"DIST
\t
RELEASE
\t
ARCH
\t
VARIANT
\t
BUILD
"
printf
"DIST
\t
RELEASE
\t
ARCH
\t
VARIANT
\t
BUILD
\n
"
echo
"---"
while
read
line
;
do
# Basic CSV parser
...
...
@@ -316,7 +316,7 @@ if [ "$DOWNLOAD_LIST_IMAGES" = "true" ] || \
[
-n
"
$DOWNLOAD_VARIANT
"
]
&&
[
"
$4
"
!=
"
$DOWNLOAD_VARIANT
"
]
&&
continue
[
-z
"
$5
"
]
||
[
-z
"
$6
"
]
&&
continue
echo
"
$1
\t
$2
\t
$3
\t
$4
\t
$5
"
printf
"
$1
\t
$2
\t
$3
\t
$4
\t
$5
\n
"
done
<
${
DOWNLOAD_TEMP
}
/index
echo
"---"
...
...
templates/lxc-fedora.in
View file @
96283b54
...
...
@@ -74,8 +74,8 @@ lxc_network_link=lxcbr0
# Detect use under userns (unsupported)
for
arg
in
"
$@
"
;
do
[
"
$arg
"
=
=
"--"
]
&&
break
if
[
"
$arg
"
=
=
"--mapped-uid"
-o
"
$arg
"
=
=
"--mapped-gid"
]
;
then
[
"
$arg
"
=
"--"
]
&&
break
if
[
"
$arg
"
=
"--mapped-uid"
-o
"
$arg
"
=
"--mapped-gid"
]
;
then
echo
"This template can't be used for unprivileged containers."
1>&2
echo
"You may want to try the
\"
download
\"
template instead."
1>&2
exit
1
...
...
templates/lxc-gentoo.in
View file @
96283b54
...
...
@@ -15,8 +15,8 @@
# Detect use under userns (unsupported)
for
arg
in
"
$@
"
;
do
[
"
$arg
"
=
=
"--"
]
&&
break
if
[
"
$arg
"
=
=
"--mapped-uid"
-o
"
$arg
"
=
=
"--mapped-gid"
]
;
then
[
"
$arg
"
=
"--"
]
&&
break
if
[
"
$arg
"
=
"--mapped-uid"
-o
"
$arg
"
=
"--mapped-gid"
]
;
then
echo
"This template can't be used for unprivileged containers."
1>&2
echo
"You may want to try the
\"
download
\"
template instead."
1>&2
exit
1
...
...
templates/lxc-openmandriva.in
View file @
96283b54
...
...
@@ -28,8 +28,8 @@
# Detect use under userns (unsupported)
for
arg
in
"
$@
"
;
do
[
"
$arg
"
=
=
"--"
]
&&
break
if
[
"
$arg
"
=
=
"--mapped-uid"
-o
"
$arg
"
=
=
"--mapped-gid"
]
;
then
[
"
$arg
"
=
"--"
]
&&
break
if
[
"
$arg
"
=
"--mapped-uid"
-o
"
$arg
"
=
"--mapped-gid"
]
;
then
echo
"This template can't be used for unprivileged containers."
1>&2
echo
"You may want to try the
\"
download
\"
template instead."
1>&2
exit
1
...
...
templates/lxc-opensuse.in
View file @
96283b54
...
...
@@ -27,8 +27,8 @@
# Detect use under userns (unsupported)
for
arg
in
"
$@
"
;
do
[
"
$arg
"
=
=
"--"
]
&&
break
if
[
"
$arg
"
=
=
"--mapped-uid"
-o
"
$arg
"
=
=
"--mapped-gid"
]
;
then
[
"
$arg
"
=
"--"
]
&&
break
if
[
"
$arg
"
=
"--mapped-uid"
-o
"
$arg
"
=
"--mapped-gid"
]
;
then
echo
"This template can't be used for unprivileged containers."
1>&2
echo
"You may want to try the
\"
download
\"
template instead."
1>&2
exit
1
...
...
templates/lxc-oracle.in
View file @
96283b54
...
...
@@ -29,8 +29,8 @@
# Detect use under userns (unsupported)
for
arg
in
"
$@
"
;
do
[
"
$arg
"
=
=
"--"
]
&&
break
if
[
"
$arg
"
=
=
"--mapped-uid"
-o
"
$arg
"
=
=
"--mapped-gid"
]
;
then
[
"
$arg
"
=
"--"
]
&&
break
if
[
"
$arg
"
=
"--mapped-uid"
-o
"
$arg
"
=
"--mapped-gid"
]
;
then
echo
"This template can't be used for unprivileged containers."
1>&2
echo
"You may want to try the
\"
download
\"
template instead."
1>&2
exit
1
...
...
templates/lxc-plamo.in
View file @
96283b54
...
...
@@ -30,8 +30,8 @@
# Detect use under userns (unsupported)
for
arg
in
"
$@
"
;
do
[
"
$arg
"
=
=
"--"
]
&&
break
if
[
"
$arg
"
=
=
"--mapped-uid"
-o
"
$arg
"
=
=
"--mapped-gid"
]
;
then
[
"
$arg
"
=
"--"
]
&&
break
if
[
"
$arg
"
=
"--mapped-uid"
-o
"
$arg
"
=
"--mapped-gid"
]
;
then
echo
"This template can't be used for unprivileged containers."
1>&2
echo
"You may want to try the
\"
download
\"
template instead."
1>&2
exit
1
...
...
templates/lxc-sshd.in
View file @
96283b54
...
...
@@ -22,8 +22,8 @@
# Detect use under userns (unsupported)
for
arg
in
"
$@
"
;
do
[
"
$arg
"
=
=
"--"
]
&&
break
if
[
"
$arg
"
=
=
"--mapped-uid"
-o
"
$arg
"
=
=
"--mapped-gid"
]
;
then
[
"
$arg
"
=
"--"
]
&&
break
if
[
"
$arg
"
=
"--mapped-uid"
-o
"
$arg
"
=
"--mapped-gid"
]
;
then
echo
"This template can't be used for unprivileged containers."
1>&2
echo
"You may want to try the
\"
download
\"
template instead."
1>&2
exit
1
...
...
templates/lxc-ubuntu.in
View file @
96283b54
...
...
@@ -26,8 +26,8 @@
# Detect use under userns (unsupported)
for
arg
in
"
$@
"
;
do
[
"
$arg
"
=
=
"--"
]
&&
break
if
[
"
$arg
"
=
=
"--mapped-uid"
-o
"
$arg
"
=
=
"--mapped-gid"
]
;
then
[
"
$arg
"
=
"--"
]
&&
break
if
[
"
$arg
"
=
"--mapped-uid"
-o
"
$arg
"
=
"--mapped-gid"
]
;
then
echo
"This template can't be used for unprivileged containers."
1>&2
echo
"You may want to try the
\"
download
\"
template instead."
1>&2
exit
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment