Update archtitus.sh

This commit is contained in:
solomoncyj 2022-04-24 09:19:01 +08:00 committed by GitHub
parent bf7fc08b64
commit 23232ab5c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,11 @@ if [ "$EUID" -ne 0 ]
then echo "Please run as root" then echo "Please run as root"
exit exit
fi fi
# @docker check
if grep -sq 'docker\|lxc' /proc/1/cgroup
then
echo "running in docker container, no supported (at the moment)"
fi
# Find the name of the folder the scripts are in # Find the name of the folder the scripts are in
set -a set -a
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"