linuxkurs/beispiele/11/rsync-check.sh

10 lines
182 B
Bash
Raw Normal View History

2019-02-04 10:38:01 +01:00
#!/bin/bash
#
# rsync-check.sh
set -- $SSH_ORIGINAL_COMMAND
cmd="$1"; shift
case "$cmd" in
scp|rsync) exec "$cmd" "$@" ;;
*) echo "ERROR: request not permitted" ;;
esac