#!/bin/bash
# Detect use under userns (unsupported)
-for arg in $*; do
- if [ "$arg" == "--mapped-uid" ]; then
+for arg in "$@"; do
+ [ "$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
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# Detect use under userns (unsupported)
-for arg in $*; do
- if [ "$arg" == "--mapped-uid" ]; then
+for arg in "$@"; do
+ [ "$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
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# Detect use under userns (unsupported)
-for arg in $*; do
- if [ "$arg" == "--mapped-uid" ]; then
+for arg in "$@"; do
+ [ "$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
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# Detect use under userns (unsupported)
-for arg in $*; do
- if [ "$arg" == "--mapped-uid" ]; then
+for arg in "$@"; do
+ [ "$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
# should be able to use EITHER. Give preference to /etc/os-release for now.
# Detect use under userns (unsupported)
-for arg in $*; do
- if [ "$arg" == "--mapped-uid" ]; then
+for arg in "$@"; do
+ [ "$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
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# Detect use under userns (unsupported)
-for arg in $*; do
- if [ "$arg" == "--mapped-uid" ]; then
+for arg in "$@"; do
+ [ "$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
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# Detect use under userns (unsupported)
-for arg in $*; do
- if [ "$arg" == "--mapped-uid" ]; then
+for arg in "$@"; do
+ [ "$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
# should be able to use EITHER. Give preference to /etc/os-release for now.
# Detect use under userns (unsupported)
-for arg in $*; do
- if [ "$arg" == "--mapped-uid" ]; then
+for arg in "$@"; do
+ [ "$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
#
# Detect use under userns (unsupported)
-for arg in $*; do
- if [ "$arg" == "--mapped-uid" ]; then
+for arg in "$@"; do
+ [ "$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
#
# Detect use under userns (unsupported)
-for arg in $*; do
- if [ "$arg" == "--mapped-uid" ]; then
+for arg in "$@"; do
+ [ "$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
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# Detect use under userns (unsupported)
-for arg in $*; do
- if [ "$arg" == "--mapped-uid" ]; then
+for arg in "$@"; do
+ [ "$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
#
# Detect use under userns (unsupported)
-for arg in $*; do
- if [ "$arg" == "--mapped-uid" ]; then
+for arg in "$@"; do
+ [ "$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
# lxc-ubuntu script
# Detect use under userns (unsupported)
-for arg in $*; do
- if [ "$arg" == "--mapped-uid" ]; then
+for arg in "$@"; do
+ [ "$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
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# Detect use under userns (unsupported)
-for arg in $*; do
- if [ "$arg" == "--mapped-uid" ]; then
+for arg in "$@"; do
+ [ "$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
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# Detect use under userns (unsupported)
-for arg in $*; do
- if [ "$arg" == "--mapped-uid" ]; then
+for arg in "$@"; do
+ [ "$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