removed root user requirement from main script
This commit is contained in:
parent
0cfd276b4c
commit
f1c5e5f9c4
1 changed files with 22 additions and 25 deletions
|
|
@ -93,14 +93,14 @@ update(){
|
||||||
# Options and Arguments Parser
|
# Options and Arguments Parser
|
||||||
#------------------------------------------------------#
|
#------------------------------------------------------#
|
||||||
|
|
||||||
if [[ $runuser == root ]] ; then
|
case $1 in
|
||||||
case $1 in
|
|
||||||
-i | --install)
|
-i | --install)
|
||||||
install
|
install
|
||||||
;;
|
;;
|
||||||
-r | --remove)
|
-r | --remove)
|
||||||
remove
|
remove
|
||||||
;;
|
;;
|
||||||
|
-d | --dependencies)
|
||||||
-u | --update)
|
-u | --update)
|
||||||
update
|
update
|
||||||
#sleep $ratelimit
|
#sleep $ratelimit
|
||||||
|
|
@ -114,10 +114,7 @@ if [[ $runuser == root ]] ; then
|
||||||
usage
|
usage
|
||||||
#exit 2
|
#exit 2
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
|
||||||
fail "Must be run as user 'root'"
|
|
||||||
fi
|
|
||||||
#------------------------------------------------------#
|
#------------------------------------------------------#
|
||||||
# Script begins here
|
# Script begins here
|
||||||
#------------------------------------------------------#
|
#------------------------------------------------------#
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue