Mini Shell
#!/usr/bin/bash
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT
whmapi1 set_tweaksetting key=jaildefaultshell value=0
for u in `cat /etc/passwd | grep /usr/local/cpanel/bin/jailshell | cut -d: -f 1 ` ;
do
chsh -s /bin/bash $u &>/dev/null
/bin/sed -i -e "s/SHELL=\"\/usr\/local\/cpanel\/bin\/jailshell\"/SHELL=\"\/bin\/bash\"/g" /var/spool/cron/$u
done
if [ -e /scripts/clear_orphaned_virtfs_mounts ]; then
/scripts/clear_orphaned_virtfs_mounts --clearall &>/dev/null
for i in `cat /proc/mounts | grep /home/virtfs | cut -d ' ' -f 2 ` ; do umount $i ; done
fi
Zerion Mini Shell 1.0