Only rpm, yum, and apt-get can be used.
exit 1
fi
+if [ x$1 != x"rpm" -a x$1 != x"yum" -a x$1 != x"apt-get" ] ; then
+ echo "Only the following commands can be used. "
+ echo " rpm, yum, apt-get"
+ exit 1
+fi
+
# args and environment variables
UPDATECMD=$*
PREFIX=/opt/lxcf
LXCSTATES=`/usr/lib64/lxcf/lxcf-list | awk '{if (NR >2) print}'`
# It is confirmed whether LXCF may stop all containers.
-echo -n "stop all lxcf containers (yes/no)? "
-read ans
-case ${ans} in
-[Yy]|[Yy][Ee][Ss])
- continue ;;
-[Nn]|[Nn][Oo])
- exit 1 ;;
-*)
- exit 1;;
-esac
+# echo -n "stop all lxcf containers (yes/no)? "
+# read ans
+# case ${ans} in
+# [Yy]|[Yy][Ee][Ss])
+# continue ;;
+# [Nn]|[Nn][Oo])
+# exit 1 ;;
+# *)
+# exit 1;;
+# esac
# recovery container status
check_stop_state() {