pull/109/head
Mr Chen 6 years ago
parent 4504d8daee
commit c460f57223
  1. 2
      plugins/gogs/index.py
  2. 4
      plugins/gogs/init.d/gogs.tpl
  3. 8
      plugins/gogs/install.sh
  4. 1
      plugins/php/versions/53/install.sh
  5. 11
      plugins/php/versions/phplib.conf
  6. 40
      scripts/lib.sh

@ -99,7 +99,7 @@ def getRunUser():
"who | sed -n '2, 1p' |awk '{print $1}'")[0].strip()
return user
else:
return 'root'
return 'gogs'
__SR = '''#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin

@ -30,7 +30,7 @@ HOME={$HOME_DIR}
NAME=gogs
GOGS_HOME={$SERVER_PATH}/gogs
GOGS_PATH=${GOGS_HOME}/$NAME
GOGS_USER=midoks
GOGS_USER={$RUN_USER}
SERVICENAME="Gogs"
LOCKFILE=/tmp/gogs.lock
LOGPATH=${GOGS_HOME}/log
@ -65,7 +65,7 @@ start() {
stop() {
cd ${GOGS_HOME}
echo "Shutting down ${SERVICENAME}: \c"
which "killproc" > /dev/null
which killproc > /dev/null
if [ $? -eq 0 ];then
killproc ${NAME}
else

@ -49,6 +49,14 @@ Install_gogs()
mv $serverPath/source/gogs/gogs_${version}/gogs/ $serverPath/gogs
echo $version > $serverPath/gogs/version.pl
if id -u gogs > /dev/null 2>&1; then
echo "csvn user exists"
else
useradd gogs
cp /etc/sudoers{,.`date +"%Y-%m-%d_%H-%M-%S"`}
echo "gogs ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
fi
echo 'install success' > $install_tmp
}

@ -63,6 +63,7 @@ cd $sourcePath/php/php-5.3.29 && ./configure \
--enable-sysvmsg \
--enable-intl \
--enable-exif \
--witd-gd \
--enable-ftp \
--enable-wddx \
--enable-soap \

@ -67,7 +67,9 @@
"55",
"56",
"70",
"71"
"71",
"72",
"73"
],
"type": "缓存器",
"msg": "强大的内容缓存器,支持集群",
@ -83,7 +85,8 @@
"56",
"70",
"71",
"72"
"72",
"73"
],
"type": "缓存器",
"msg": "更强大的内容缓存器,支持集群",
@ -204,7 +207,9 @@
"name": "yac",
"versions": [
"70",
"71"
"71",
"72",
"73"
],
"type": "缓存器",
"msg": "高性能无锁共享内存Cache",

@ -46,24 +46,18 @@ echo -e "Install_Libmemcached" >> ${libPath}/lib.pl
Install_Libiconv()
{
if [ -d '/usr/local/libiconv' ];then
return
fi
cd ${run_path}
if [ ! -f "libiconv-1.14.tar.gz" ];then
wget -O libiconv-1.14.tar.gz ${download_Url}/src/libiconv-1.14.tar.gz -T 5
fi
mkdir /patch
wget -O /patch/libiconv-glibc-2.16.patch ${download_Url}/src/patch/libiconv-glibc-2.16.patch -T 5
tar zxf libiconv-1.14.tar.gz
cd libiconv-1.14
patch -p0 < /patch/libiconv-glibc-2.16.patch
./configure --prefix=/usr/local/libiconv --enable-static
cd ${sourcePath}
if [ ! -f ${libPath}/libiconv ];then
wget -O libiconv-1.15.tar.gz https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz -T 5
tar zxf libiconv-1.15.tar.gz
cd libiconv-1.15
./configure --prefix=${libPath}/libiconv --enable-static
make && make install
cd ${run_path}
rm -rf libiconv-1.14
rm -f libiconv-1.14.tar.gz
echo -e "Install_Libiconv" >> /www/server/lib.pl
cd ${sourcePath}
rm -rf libiconv-1.15
rm -f libiconv-1.15.tar.gz
fi
echo -e "Install_Libiconv" >> ${libPath}/lib.pl
}
Install_Libmcrypt()
@ -202,11 +196,11 @@ Install_OpenSSL()
Install_Lib()
{
if [ -f "/www/server/nginx/sbin/nginx" ] || [ -f "/www/server/apache/bin/httpd" ] || [ -f "/www/server/mysql/bin/mysql" ]; then
if [ -f "/www/server/nginx/sbin/nginx" ] || [ -f "/www/server/apache/bin/httpd" ] || [ -f "/www/server/mysql/bin/mysql" ]; then
return
fi
lockFile='/www/server/panel/data/bt_lib.lock'
if [ ! -f "${lockFile}" ];then
fi
lockFile='${libPath}/data/mw_lib.lock'
if [ ! -f "${lockFile}" ];then
sed -i "s#SELINUX=enforcing#SELINUX=disabled#" /etc/selinux/config
rpm -e --nodeps mariadb-libs-*
@ -219,7 +213,7 @@ if [ ! -f "${lockFile}" ];then
groupadd www
useradd -s /sbin/nologin -M -g www www
echo 'true' > $lockFile
fi
fi
}
Install_Zlib
@ -230,4 +224,4 @@ Install_OpenSSL
# Install_Mhash
# Install_Libmcrypt
# Install_Mcrypt
# Install_Libiconv
Install_Libiconv
Loading…
Cancel
Save