diff --git a/bbb-graphql-server/update_graphql_data.sh b/bbb-graphql-server/update_graphql_data.sh index 802668c9ac..12e539beee 100755 --- a/bbb-graphql-server/update_graphql_data.sh +++ b/bbb-graphql-server/update_graphql_data.sh @@ -1,4 +1,10 @@ #!/bin/bash +if [ "$EUID" -ne 0 ]; then + echo "Please run this script as root ( or with sudo )" ; + exit 1; +fi; + +cd "$(dirname "$0")" export LANGUAGE="en_US.UTF-8" export LC_ALL="en_US.UTF-8"