Require root
This commit is contained in:
parent
8d12d96bb3
commit
ea87b7bf93
|
@ -6,6 +6,12 @@
|
||||||
# For use with Zential Server #
|
# For use with Zential Server #
|
||||||
###############################
|
###############################
|
||||||
|
|
||||||
|
# Check if is running as root
|
||||||
|
if [ "$(id -u)" != "0" ]; then
|
||||||
|
echo "This script must be run as root" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
USERNAME=$1
|
USERNAME=$1
|
||||||
NAME=$2
|
NAME=$2
|
||||||
DEFAULT_QUOTA=256000 # 256MB
|
DEFAULT_QUOTA=256000 # 256MB
|
||||||
|
|
|
@ -6,6 +6,12 @@
|
||||||
# For use with Zential Server #
|
# For use with Zential Server #
|
||||||
###############################
|
###############################
|
||||||
|
|
||||||
|
# Check if is running as root
|
||||||
|
if [ "$(id -u)" != "0" ]; then
|
||||||
|
echo "This script must be run as root" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
USERNAME=$1
|
USERNAME=$1
|
||||||
NAME=$2
|
NAME=$2
|
||||||
DEFAULT_QUOTA=256000 # 256MB
|
DEFAULT_QUOTA=256000 # 256MB
|
||||||
|
|
|
@ -6,6 +6,12 @@
|
||||||
# For use with Zential Server #
|
# For use with Zential Server #
|
||||||
###############################
|
###############################
|
||||||
|
|
||||||
|
# Check if is running as root
|
||||||
|
if [ "$(id -u)" != "0" ]; then
|
||||||
|
echo "This script must be run as root" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
USERNAME=$1
|
USERNAME=$1
|
||||||
NAME=$2
|
NAME=$2
|
||||||
DEFAULT_QUOTA=256000 # 256MB
|
DEFAULT_QUOTA=256000 # 256MB
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Check if is running as root
|
||||||
|
if [ "$(id -u)" != "0" ]; then
|
||||||
|
echo "This script must be run as root" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
USERNAME=$1
|
USERNAME=$1
|
||||||
|
|
||||||
# Check if arguments are not empty
|
# Check if arguments are not empty
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Check if is running as root
|
||||||
|
if [ "$(id -u)" != "0" ]; then
|
||||||
|
echo "This script must be run as root" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
USERNAME=$1
|
USERNAME=$1
|
||||||
DEFAULT_PASSWORD=123456789
|
DEFAULT_PASSWORD=123456789
|
||||||
PASSWORD=${2:-$DEFAULT_PASSWORD}
|
PASSWORD=${2:-$DEFAULT_PASSWORD}
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Check if is running as root
|
||||||
|
if [ "$(id -u)" != "0" ]; then
|
||||||
|
echo "This script must be run as root" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
USERNAME=$1
|
USERNAME=$1
|
||||||
QUOTA=$2
|
QUOTA=$2
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user