Don't fail if banner files was not here

This commit is contained in:
ljf (zamentur) 2022-07-23 20:04:13 +02:00 committed by GitHub
parent 897aef7ba8
commit b06997d51b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,8 +47,8 @@ echo "root:yunohost" | chpasswd
EOF
echo "Removing Raspbian sshd banner"
rm /etc/ssh/sshd_config.d/rename_user.conf
rm /usr/share/userconf-pi/sshd_banner
rm -f /etc/ssh/sshd_config.d/rename_user.conf
rm -f /usr/share/userconf-pi/sshd_banner
install -m 755 files/check_yunohost_is_installed.sh "${ROOTFS_DIR}/etc/profile.d/"