Change default backup user shell from /bin/sh to /bin/bash for compatibility reasons

This commit is contained in:
Janek Bevendorff 2013-11-20 14:43:00 +01:00
parent 5a8bf42c05
commit fcbb1ddecd
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ remote_username="$2"
ssh_key_file="$3"
local_username="${remote_hostname}-${remote_username}"
useradd -G backup -b "${BACKUP_ROOT}" -m -k /etc/rs-skel -p '*' -s /bin/sh "${local_username}"
useradd -G backup -b "${BACKUP_ROOT}" -m -k /etc/rs-skel -p '*' -s /bin/bash "${local_username}"
rs-update-passwd
# Generate config files from templates

View File

@ -8,4 +8,4 @@ if [ "${BACKUP_ROOT}" == "" ] || [ "$(realpath ${BACKUP_ROOT})" == "/" ]; then
exit 1
fi
cat /etc/passwd | grep "::${BACKUP_ROOT}/[^/:]\+:/bin/sh$" > "${BACKUP_ROOT}/etc/passwd"
cat /etc/passwd | grep "::${BACKUP_ROOT}/[^/:]\+:/bin/[^:]\+$" > "${BACKUP_ROOT}/etc/passwd"