Skip to content

Commit

Permalink
add echo warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Mar 30, 2024
1 parent ab0d9c9 commit 212ac94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions after-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ if [ -x "/bin/systemctl" ]; then
/bin/systemctl daemon-reload

if [ -d "/share/websites/www" ]; then
echo "Restarting supervisor daemon!"
/bin/systemctl restart supervisor
fi
fi
Expand All @@ -26,6 +27,7 @@ fi
if [ -d "/share/workers/defaults/ssh/$(hostname -s)" ] && \
! diff -q "/share/workers/defaults/ssh/$(hostname -s)/ssh_host_ecdsa_key" /etc/ssh/ssh_host_ecdsa_key >/dev/null 2>&1
then
echo "SSH Host keys updated. Restarting SSH daemon!"
cp -r "/share/workers/defaults/ssh/$(hostname -s)/ssh_host_*" /etc/ssh/
/bin/systemctl restart sshd
fi

0 comments on commit 212ac94

Please sign in to comment.