Don't fail if banner files was not here

This commit is contained in:
ljf (zamentur) 2022-07-23 20:04:13 +02:00
parent c26cb0c3c7
commit 61fb4124dd

View file

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