vhost-stack/libexec/command-not-found-handle

23 lines
654 B
Plaintext
Raw Normal View History

2021-04-04 13:28:22 -07:00
#!/bin/bash
2022-08-22 13:22:16 -07:00
#
# vhost-stack
# https://git.stack-source.com/msb/vhost-stack
# Copyright (c) 2022 Matthew Saunders Brown <matthewsaundersbrown@gmail.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
2021-04-04 13:28:22 -07:00
echo
echo $1: command not found
echo
echo " Note this is a secure chroot jail which"
echo " only includes a limited set of commands."
echo
if [[ "$1" =~ "passwd" ]]; then
echo " To change your password please contact"
echo " support."
else
echo " If you are trying to execute a command that"
echo " you believe should be included in this chroot"
echo " jail please contact support."
fi
echo