2
if [ "$(id -u)" != "0" ]; then
3
echo "This utility may only be run as root." 1>&2
2
if [ "`expr \"$0\" : \".*maas-cli*\"`" != "0" ];then
3
echo " WARNING: The maas-cli command is deprecated and will be removed" \
4
"in a future\n version. From now on please use 'maas' instead."
6
export PYTHONPATH="/usr/share/maas${PYTHONPATH:+:}${PYTHONPATH}"
7
export DJANGO_SETTINGS_MODULE="maas.settings"
8
exec /usr/bin/django-admin "$@"
6
exec python -m maascli "$@"