update header comment and root check output
This commit is contained in:
parent
7fb4423026
commit
901f856402
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
### update script for <ab-container> utility scripts
|
### update script for <ab-container> container and utility scripts
|
||||||
# version x.y.z
|
# version x.y.z
|
||||||
# script by Asif Bacchus
|
# script by Asif Bacchus
|
||||||
# usage of this script is subject to the license terms found at:
|
# usage of this script is subject to the license terms found at:
|
||||||
@ -18,7 +18,7 @@ fi
|
|||||||
# is user root or in the docker group?
|
# is user root or in the docker group?
|
||||||
if [ ! "$( id -u )" -eq 0 ]; then
|
if [ ! "$( id -u )" -eq 0 ]; then
|
||||||
if ! id -Gn | grep docker > /dev/null; then
|
if ! id -Gn | grep docker > /dev/null; then
|
||||||
consoleError '1' "You must either be root or in the 'docker' group to run this script since you must be able to run 'docker exec' commands against the container!"
|
consoleError '1' "You must either be root or in the 'docker' group to pull container updates."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user