mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Eliminate redundant checks of cifs_version.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
#!/bin/bash -eu
|
||||
|
||||
cifs_version="${cifs_version:-3}"
|
||||
|
||||
function configure_archive () {
|
||||
local archive_server_ip_address="$1"
|
||||
|
||||
|
||||
@@ -178,22 +178,20 @@ function make_root_fs_readonly () {
|
||||
|
||||
echo "Verifying environment variables..."
|
||||
|
||||
if [ ! -n "${cifs_version+x}" ]
|
||||
then
|
||||
cifs_version=3
|
||||
fi
|
||||
|
||||
if [ $RSYNC_ENABLE = true ]
|
||||
then
|
||||
check_variable "RSYNC_USER"
|
||||
check_variable "RSYNC_SERVER"
|
||||
export archiveserver=$RSYNC_SERVER
|
||||
check_variable "RSYNC_PATH"
|
||||
check_variable "RSYNC_USER"
|
||||
check_variable "RSYNC_SERVER"
|
||||
export archiveserver=$RSYNC_SERVER
|
||||
check_variable "RSYNC_PATH"
|
||||
else # Else for now, TODO allow both for more redundancy?
|
||||
check_variable "sharename"
|
||||
check_variable "shareuser"
|
||||
check_variable "sharepassword"
|
||||
check_variable "sharename"
|
||||
check_variable "shareuser"
|
||||
check_variable "sharepassword"
|
||||
|
||||
export cifs_version="${cifs_version:-3}"
|
||||
fi
|
||||
|
||||
check_variable "archiveserver"
|
||||
check_variable "campercent"
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#!/bin/bash -eu
|
||||
|
||||
cifs_version="${cifs_version:-3}"
|
||||
|
||||
function check_archive_server_reachable () {
|
||||
echo "Verifying that the archive server $archiveserver is reachable..."
|
||||
local serverunreachable=false
|
||||
|
||||
Reference in New Issue
Block a user