404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.137.166.217: ~ $
CURDIR=`dirname "$0"`
cd $CURDIR
CURDIR=`pwd`
LSWSHOME=`dirname $CURDIR`
LSWSHOME=`dirname $LSWSHOME`

INST_USER=`id`
INST_USER=`expr "$INST_USER" : 'uid=.*(\(.*\)) gid=.*'`

AWS_VER=7.9


cd $LSWSHOME/add-ons

if [ -f $LSWSHOME/add-ons/awstats-$AWS_VER/wwwroot/cgi-bin/awstats.pl ]; then
	echo "[INFO] Found AWStats $AWS_VER at $LSWSHOME/add-ons/awstats-$AWS_VER."
else
	if [ ! -f $LSWSHOME/add-ons/awstats-$AWS_VER.tar.gz ]; then
		wget --timeout=5 "http://prdownloads.sourceforge.net/sourceforge/awstats/awstats-$AWS_VER.tar.gz"
		if [ $? -ne 0 ]; then
		    echo "WGET failed, try curl"
			curl -L "http://prdownloads.sourceforge.net/sourceforge/awstats/awstats-$AWS_VER.tar.gz" -o awstats-$AWS_VER.tar.gz
			if [ $? -ne 0 ]; then
				curl -L "http://prdownloads.sourceforge.net/sourceforge/awstats/awstats-$AWS_VER.tar.gz" -o awstats-$AWS_VER.tar.gz
				if [ $? -ne 0 ]; then
					cat <<EOF
[ERROR] Failed to download AWStats $AWS_VER package, please download  
        AWStats $AWS_VER package manually from http://www.awstats.org/ to 
        '$LSWSHOME/add-ons/' directory, then expand the package there.

EOF
					exit 1
				fi
			fi
		fi
	fi
	gunzip -c awstats-$AWS_VER.tar.gz | tar xf -
	if [ $? -ne 0 ]; then
		cat <<EOF
[ERROR] Failed to expand $LSWSHOME/add-ons/awstats-$AWS_VER.tar.gz. 
		Please expand it manually.

EOF
		exit 1
	fi

		
fi

DIRS=`find ./ -name awstats-$AWS_VER -type d`
chmod 0755 $DIRS
if [ $INST_USER = "root" ]; then
	chown -R root:root awstats-$AWS_VER
    if [ $? -ne 0 ]; then
        chown -R root:wheel awstats-$AWS_VER
    fi
fi

if [ -L $LSWSHOME/add-ons/awstats ]; then
	echo "[INFO] Removing old symbolic link."
	rm -f $LSWSHOME/add-ons/awstats
fi
echo "[INFO] Creating a symbolic link from './awstats-$AWS_VER' to './awstats'"
ln -sf ./awstats-$AWS_VER $LSWSHOME/add-ons/awstats

if [ $? -eq 0 ]; then
	cat <<EOF
[OK] AWStats $AWS_VER has been successfully installed as a litespeed 
     add-on module.

EOF
else
	cat <<EOF
[ERROR] Failed to create a symbolic link from './awstats-$AWS_VER' to 
        './awstats', please create it manually.
EOF
	exit 1
fi

Filemanager

Name Type Size Permission Actions
admpass.sh File 1.17 KB 0555
ap_lsws.sh File 1.82 KB 0755
ap_lsws.sh.in File 1.82 KB 0555
awstats_install.sh File 2.06 KB 0555
build_ap_wrapper.sh File 624 B 0555
chroot.sh File 7.31 KB 0555
cleancache.sh File 1.46 KB 0555
cleanlitemage.sh File 2.4 KB 0555
cp_switch_ws.sh File 22.41 KB 0555
cpanel_restart_httpd.in File 732 B 0555
create_admin_keypair.sh File 336 B 0555
enable_ruby_python_selector.sh File 2.68 KB 0555
fix_cagefs.sh File 766 B 0555
fp_install.sh File 1.65 KB 0555
gdb-bt File 25 B 0644
genjCryptionKeyPair.php File 6.43 KB 0644
gzipStatic.sh File 272 B 0555
htpasswd.php File 103 B 0644
lscmctl File 15.3 KB 0775
lshttpd.service File 660 B 0555
lsup.sh File 5.65 KB 0555
lsup6.sh File 5.65 KB 0555
lsws.rc File 1.78 KB 0555
lsws.rc.gentoo File 441 B 0555
mgr_ver.sh File 1.93 KB 0555
php.ini File 37.11 KB 0644
purge_cache_by_url File 3.23 KB 0555
rc-inst.sh File 5.99 KB 0555
rc-uninst.sh File 4.61 KB 0555
uninstall.sh File 2.9 KB 0555
update.sh File 1.85 KB 0555