0 Members and 1 Guest are viewing this topic.
#!/bin/bashyum -y update cwpphp --enablerepo=cwpcos=`uname -r | grep -oP "el\K(.)"`ver=`grep "version" /usr/local/cwpsrv/htdocs/resources/admin/include/version.php | cut -d "\"" -f 2`case $cos in[6]*) echo "CentOs $cos running CWP $ver" chattr -i -R /usr/local/cwpsrv/htdocs cd /usr/local/cwpsrv/htdocs wget dl1.centos-webpanel.com/files/cwp/cwp2-$ver.zip unzip -o cwp2-$ver.zip rm -f cwp2-$ver.zip;;[7]*) echo "CentOs $cos running CWP $ver" chattr -i -R /usr/local/cwpsrv/htdocs cd /usr/local/cwpsrv/htdocs wget static.cdn-cwp.com/files/cwp/el7/cwp-el7-$ver.zip unzip -o -q cwp-el7-$ver.zip rm -f cwp-el7-$ver.zip ;;*) echo "Not CentOs" ;;esacchattr -R -i /usr/local/cwpsrv/var/services/cd /usr/local/cwpsrv/var/services/wget static.cdn-cwp.com/files/cwp/el7/cwp-services.zipunzip -o -q cwp-services.ziprm -f cwp-services.zipsed -i "s/ioncube_loader_lin_7.0/ioncube_loader_lin_7.2/g" /usr/local/cwp/php71/php.inish /scripts/restart_cwpsrvsh /scripts/update_cwp
FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Twig_Error_Loader: The "/usr/local/cwpsrv/var/services/users/cwp_theme/undefined" directory does not exist ("/usr/local/cwpsrv/var/services/users/cwp_theme/undefined"). in /usr/local/cwpsrv/var/services/twig/lib/Twig/Loader/Filesystem.php:101Stack trace: