mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-25 23:59:49 +00:00
Update for consistent indent
This commit updates all scripts using mixed indent to a consistent 4 spaces indent. In the past quite a few of those scripts used tabs to instead of 8 spaces or instead of 4 spaces, sometimes mixing those in the same line and sometimes changing the tab width within the same file. Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
eba7df9ee0
commit
14d9c0f09d
@ -69,7 +69,8 @@ while true; do
|
||||
;;
|
||||
--)
|
||||
shift
|
||||
break;;
|
||||
break
|
||||
;;
|
||||
*)
|
||||
usage
|
||||
exit 1
|
||||
|
@ -140,4 +140,3 @@ while read line; do
|
||||
printf "%-${container_field_width}s %s\n" "${container_of_pid[pid]}" "$line"
|
||||
fi
|
||||
done < <(ps "$@")
|
||||
|
||||
|
@ -17,7 +17,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
|
||||
@ -227,9 +227,7 @@ install_altlinux()
|
||||
echo "Failed to copy rootfs"
|
||||
return 1
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
||||
) 200>@LOCALSTATEDIR@/lock/subsys/lxc
|
||||
|
||||
return $?
|
||||
@ -327,7 +325,6 @@ clean()
|
||||
echo -n "Purging the download cache for ALTLinux-$release..."
|
||||
rm --preserve-root --one-file-system -rf $cache && echo "Done." || exit 1
|
||||
exit 0
|
||||
|
||||
) 200>@LOCALSTATEDIR@/lock/subsys/lxc
|
||||
}
|
||||
|
||||
|
@ -108,14 +108,12 @@ EOF
|
||||
|
||||
cat <<EOF >> $rootfs/usr/share/udhcpc/default.script
|
||||
#!/bin/sh
|
||||
|
||||
case "\$1" in
|
||||
deconfig)
|
||||
ip addr flush dev \$interface
|
||||
;;
|
||||
|
||||
renew|bound)
|
||||
|
||||
# flush all the routes
|
||||
if [ -n "\$router" ]; then
|
||||
ip route del default 2> /dev/null
|
||||
|
@ -13,7 +13,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
|
||||
|
@ -233,7 +233,6 @@ install_fedora()
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
||||
) 200>@LOCALSTATEDIR@/lock/subsys/lxc
|
||||
|
||||
return $?
|
||||
@ -302,7 +301,6 @@ clean()
|
||||
echo -n "Purging the download cache for Fedora-$release..."
|
||||
rm --preserve-root --one-file-system -rf $cache && echo "Done." || exit 1
|
||||
exit 0
|
||||
|
||||
) 200>@LOCALSTATEDIR@/lock/subsys/lxc
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,8 @@ openssh-server
|
||||
echo "Downloading debian minimal ..."
|
||||
debootstrap --verbose --variant=minbase --arch=$arch \
|
||||
--include $packages \
|
||||
"$SUITE" "$cache/partial-$SUITE-$arch" http://ftp.debian.org/debian
|
||||
"$SUITE" "$cache/partial-$SUITE-$arch" \
|
||||
http://ftp.debian.org/debian
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Failed to download the rootfs, aborting."
|
||||
return 1
|
||||
@ -164,9 +165,7 @@ install_debian()
|
||||
echo "Failed to copy rootfs"
|
||||
return 1
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
||||
) 200>@LOCALSTATEDIR@/lock/subsys/lxc
|
||||
|
||||
return $?
|
||||
@ -235,7 +234,6 @@ clean()
|
||||
echo -n "Purging the download cache..."
|
||||
rm --preserve-root --one-file-system -rf $cache && echo "Done." || exit 1
|
||||
exit 0
|
||||
|
||||
) 200>@LOCALSTATEDIR@/lock/subsys/lxc
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,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
|
||||
@ -242,7 +242,6 @@ install_opensuse()
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
||||
) 200>@LOCALSTATEDIR@/lock/subsys/lxc
|
||||
|
||||
return $?
|
||||
@ -315,7 +314,6 @@ clean()
|
||||
echo -n "Purging the download cache..."
|
||||
rm --preserve-root --one-file-system -rf $cache && echo "Done." || exit 1
|
||||
exit 0
|
||||
|
||||
) 200>@LOCALSTATEDIR@/lock/subsys/lxc
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user