Update nasbeery2
This commit is contained in:
parent
73c6708e1c
commit
cc5dbfdbbe
@ -44,8 +44,11 @@ while getopts "hU:P:H:D:FIZ:S:" opt; do
|
|||||||
done
|
done
|
||||||
shift $((OPTIND-1))
|
shift $((OPTIND-1))
|
||||||
|
|
||||||
if [[ ! $(ls $PWD/nasbeery.conf > /dev/null 2&>1) ]]; then
|
if [[ $(ls nasbeery.conf) ]]; then
|
||||||
cat << EOF > $PWD/nasbeery.conf
|
source nasbeery.conf
|
||||||
|
PASSWORD_REPEAT=$PASSWORD
|
||||||
|
else
|
||||||
|
cat << EOF > nasbeery.conf
|
||||||
USERNAME=$USERNAME
|
USERNAME=$USERNAME
|
||||||
PASSWORD='$PASSWORD'
|
PASSWORD='$PASSWORD'
|
||||||
HOSTNAME=$HOSTNAME
|
HOSTNAME=$HOSTNAME
|
||||||
@ -55,8 +58,6 @@ ADDONS=$ADDONS
|
|||||||
ZPOOL=$ZPOOL
|
ZPOOL=$ZPOOL
|
||||||
SHARE=$SHARE
|
SHARE=$SHARE
|
||||||
EOF
|
EOF
|
||||||
else
|
|
||||||
source $PWD/nasbeery.conf
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change password for Samba and Terminal
|
# Change password for Samba and Terminal
|
||||||
|
Loading…
Reference in New Issue
Block a user