Messages when adding tahoelafs server
This commit is contained in:
parent
1d868312e0
commit
df259331b8
|
@ -476,15 +476,19 @@ function add_tahoelafs_server {
|
||||||
furl="$4"
|
furl="$4"
|
||||||
|
|
||||||
if [ ${#storage_hostname} -eq 0 ]; then
|
if [ ${#storage_hostname} -eq 0 ]; then
|
||||||
|
echo $'No storage hostname'
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if [ ${#public_key} -eq 0 ]; then
|
if [ ${#public_key} -eq 0 ]; then
|
||||||
|
echo $'No public key'
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if [ ${#nick} -eq 0 ]; then
|
if [ ${#nick} -eq 0 ]; then
|
||||||
|
echo $'No nick'
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if [ ${#furl} -eq 0 ]; then
|
if [ ${#furl} -eq 0 ]; then
|
||||||
|
echo $'No furl'
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -492,6 +496,7 @@ function add_tahoelafs_server {
|
||||||
echo 'storage:' > ${tahoelafs_storage_file}
|
echo 'storage:' > ${tahoelafs_storage_file}
|
||||||
else
|
else
|
||||||
if grep -q "${public_key}" ${tahoelafs_storage_file}; then
|
if grep -q "${public_key}" ${tahoelafs_storage_file}; then
|
||||||
|
echo $'Public key already exists'
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
echo '# storage' >> ${tahoelafs_storage_file}
|
echo '# storage' >> ${tahoelafs_storage_file}
|
||||||
|
|
Loading…
Reference in New Issue