PATH: //proc/2758987/root/proc/2816612/root/usr/local/lsws/admin/misc
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 admpass.sh
↓
X
📄 ap_lsws.sh
↓
X
📄 ap_lsws.sh.in
↓
X
📄 awstats_install.sh
↓
X
📄 build_ap_wrapper.sh
↓
X
📄 chroot.sh
↓
X
📄 cleancache.sh
↓
X
📄 cleanlitemage.sh
↓
X
📄 cp_switch_ws.sh
↓
X
📄 cpanel_restart_httpd.in
↓
X
📄 create_admin_keypair.sh
↓
X
📄 enable_ruby_python_selector.sh
↓
X
📄 fix_cagefs.sh
↓
X
📄 fp_install.sh
↓
X
📄 gdb-bt
↓
X
📄 genjCryptionKeyPair.php
↓
X
📄 gzipStatic.sh
↓
X
📄 htpasswd.php
↓
X
📄 lscmctl
↓
X
📄 lshttpd.service
↓
X
📄 lsup.sh
↓
X
📄 lsup6.sh
↓
X
📄 lsws.rc
↓
X
📄 lsws.rc.gentoo
↓
X
📄 mgr_ver.sh
↓
X
📄 php.ini
↓
X
📄 purge_cache_by_url
↓
X
📄 rc-inst.sh
↓
X
📄 rc-uninst.sh
↓
X
📄 uninstall.sh
↓
X
📄 update.sh
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: update.sh
CURDIR=`dirname "$0"` cd $CURDIR CURDIR=`pwd` LSWSHOME=`dirname $CURDIR` LSWSHOME=`dirname $LSWSHOME` LOGFILE=$LSWSHOME/autoupdate/update.log CURTIME=`date "+[%Y-%m-%d %k:%M:%S]"` test_license() { if [ -f "$LSWSHOME/conf/serial.no" ]; then cp "$LSWSHOME/conf/serial.no" "./serial.no" fi if [ -f "$LSWSHOME/conf/trial.key" ] && [ ! -f "./trial.key" ]; then cp "$LSWSHOME/conf/trial.key" "./trial.key" fi if [ -f "./serial.no" ]; then bin/lshttpd -r fi if [ -f "./license.key" ] && [ -f "./serial.no" ]; then output=`bin/lshttpd -t` if [ $? -ne 0 ]; then echo $output >> $LOGFILE echo "$CURTIME [ERROR] License key verification failed" >> $LOGFILE exit 1 fi fi } if [ "x$3" = "x" ]; then cat <<EOF Usage: update.sh VERSION EDITION PLATFORM Upgrade to another version of LiteSpeed web server. the package file must exist under $LSWSHOME/autoupdate/ Package file should be lsws-VERSION-EDITION-PLATFORM.tar.gz EOF exit 1 fi cd $LSWSHOME/autoupdate/ echo "$CURTIME Extracting package file" >> $LOGFILE OS=`uname -s` PLATFORM=$3 PACKAGEFILE=$LSWSHOME/autoupdate/lsws-$1-$2-$PLATFORM.tar.gz if [ -f $PACKAGEFILE ]; then gunzip -c $PACKAGEFILE | tar xf - else echo "$CURTIME [ERROR] Package file $PACKAGEFILE does not exist." >> $LOGFILE exit 1 fi cd $LSWSHOME/autoupdate/lsws-$1 if [ $? -ne 0 ]; then echo "$CURTIME [ERROR] Failed to change current directory to $LSWSHOME/autoupdate/lsws-$1" >> $LOGFILE exit 1 fi . ./functions.sh if [ $? != 0 ]; then echo "$CURTIME [ERROR] Can not include 'functions.sh'." >> $LOGFILE exit 1 fi init LSWS_HOME=$LSWSHOME INTSTALL_TYPE="upgrade" readCurrentConfig if [ $2 = 'ent' ] || [ $2 = 'pro' ]; then test_license fi installation echo "$CURTIME Upgrade to $1 successfully." >> $LOGFILE rm -rf $LSWSHOME/autoupdate/lsws-$1 rm -f $PACKAGEFILE exit 0
SIMPAN PERUBAHAN