|
@ -20,9 +20,12 @@ users_def=$(echo "$service_def" | shyaml get-value options.users 2>/dev/null) || |
|
|
users_file="$SERVICE_CONFIGSTORE/etc/sftp-users.conf" |
|
|
users_file="$SERVICE_CONFIGSTORE/etc/sftp-users.conf" |
|
|
echo | file_put "$users_file" |
|
|
echo | file_put "$users_file" |
|
|
|
|
|
|
|
|
|
|
|
rm -f "$SERVICE_DATASTORE/home/"*"/.ssh/authorized_keys" |
|
|
|
|
|
|
|
|
[ "$users_def" ] || exit 0 |
|
|
[ "$users_def" ] || exit 0 |
|
|
|
|
|
|
|
|
rm -f "$users_file" |
|
|
rm -f "$users_file" |
|
|
|
|
|
|
|
|
volume_keys=() |
|
|
volume_keys=() |
|
|
while read-0 login user_def; do |
|
|
while read-0 login user_def; do |
|
|
key_nb=0 |
|
|
key_nb=0 |
|
@ -57,3 +60,4 @@ $(for volume in "${volume_keys[@]}"; do |
|
|
echo " - $volume" |
|
|
echo " - $volume" |
|
|
done) |
|
|
done) |
|
|
" |
|
|
" |
|
|
|
|
|
|