Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
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 <> $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