fix: check if remote-install.sh is being run as root

This commit is contained in:
Federico Torres authored and GitHub committed 2025-03-01 16:56:21 -03:00
1 parent 185cd01e19
commit f3e46227d8
1 file changed
+7
+7
View File
@@ -38,6 +38,13 @@ function log {
}
lsb_release -d | grep "LTS" > /dev/null
if [ "$EUID" -ne 0 ]
then
echo "This script must be run as root"
exit 1
fi
if [ $? != 0 ]
then
echo "This script can only be run on a Linux Ubuntu LTS release"