Update install.sh

This commit is contained in:
Stefan Pejcic 2025-03-07 19:55:13 +01:00 committed by GitHub
parent 0213731fb5
commit 47f944d81e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -677,6 +677,12 @@ tweak_ssh(){
fi
#echo "Generating MOTD for users.. *(auto-refreshed every 10hrs)"
opencli server-motd > /dev/null 2>&1
ln -s /etc/openpanel/ssh/99-ssh-openpanel-users-settings.conf /etc/ssh/sshd_config.d/99-ssh-openpanel-users-settings.conf > /dev/null 2>&1
chmod +x /etc/openpanel/ssh/lazydocker.sh > /dev/null 2>&1
# ssh on debian, sshd on rhel
if [ "$PACKAGE_MANAGER" == "dnf" ] || [ "$PACKAGE_MANAGER" == "yum" ]; then
systemctl restart sshd > /dev/null 2>&1