Update archtitus.sh

This commit is contained in:
solomoncyj 2022-04-25 20:53:18 +08:00 committed by GitHub
parent e3b336e16c
commit 38b7b195bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -6,13 +6,13 @@
# @testing if script was run as root for full os run # @testing if script was run as root for full os run
if [ "$EUID" -ne 0 ] if [ "$EUID" -ne 0 ]
then echo "Please run as root" then echo "Please run as root"
exit exit 0
fi fi
# @docker check # @docker check
if grep -sq 'docker\|lxc' /proc/1/cgroup if grep -sq 'docker\|lxc' /proc/1/cgroup
then then
echo "running in docker container, no supported (at the moment)" echo "running in docker container, no supported (at the moment)"
exit exit 0
fi 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