Commit 69f4122c authored by Mattia Rizzolo's avatar Mattia Rizzolo

change the expected username

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent e0f0ae5f
......@@ -5,8 +5,8 @@ set -euo pipefail
base="$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )"
# Allow this script to be run only by ubuntu-it
if [[ "$(whoami)" != "ubuntu-it" ]]; then
echo "Error: this script must be executed by the ubuntu-it user"
if [[ "$(whoami)" != "ubuntu-it-web" ]]; then
echo "Error: this script must be executed by the ubuntu-it-web user"
exit 1
fi
......
......@@ -8,8 +8,8 @@ set -euo pipefail
IFS=$'\n\t'
# Allow this script to be run only by ubuntu-it
if [[ "$(whoami)" != "ubuntu-it" ]]; then
echo "Error: this script must be executed by the ubuntu-it user"
if [[ "$(whoami)" != "ubuntu-it-web" ]]; then
echo "Error: this script must be executed by the ubuntu-it-web user"
exit 1
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment