1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-27 19:05:16 +00:00

seafile.sh IS_PRO_VERSION

This commit is contained in:
skywalker 2025-04-24 12:08:27 +08:00
parent 2ec7bc4da9
commit 6a860a9521
5 changed files with 5 additions and 10 deletions

View File

@ -10,7 +10,6 @@ default_conf_dir=${TOPDIR}/conf
seaf_gc=${INSTALLPATH}/seafile/bin/seafserv-gc
seaf_gc_opts=""
pro_pylibs_dir=${INSTALLPATH}/pro/python
IS_PRO_SEAFEVENTS=`awk '/is_pro/{getline;print $2;exit}' ${pro_pylibs_dir}/seafevents/seafevents_api.py`
export PATH=${INSTALLPATH}/seafile/bin:$PATH
export SEAFILE_LD_LIBRARY_PATH=${INSTALLPATH}/seafile/lib/:${INSTALLPATH}/seafile/lib64:${LD_LIBRARY_PATH}
@ -19,7 +18,7 @@ export SEAFILE_CENTRAL_CONF_DIR=${default_conf_dir}
script_name=$0
function usage () {
echo "usage : "
if [[ $IS_PRO_SEAFEVENTS = "True" ]]; then
if [[ $IS_PRO_VERSION = "true" ]]; then
echo "$(basename ${script_name}) [--dry-run | -D] [--rm-deleted | -r] [--rm-fs | -R] [repo-id1] [repo-id2]"
else
echo "$(basename ${script_name}) [--dry-run | -D] [--rm-deleted | -r] [repo-id1] [repo-id2]"

View File

@ -9,7 +9,6 @@ pro_pylibs_dir=${INSTALLPATH}/pro/python
seafesdir=$pro_pylibs_dir/seafes
seahubdir=${INSTALLPATH}/seahub
seafile_rpc_pipe_path=${INSTALLPATH}/runtime
IS_PRO_SEAFEVENTS=`awk '/is_pro/{getline;print $2;exit}' ${pro_pylibs_dir}/seafevents/seafevents_api.py`
export PATH=${INSTALLPATH}/seafile/bin:$PATH
export ORIG_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
@ -114,7 +113,7 @@ function check_process() {
# start
function start_seaf_server() {
if [[ $IS_PRO_SEAFEVENTS = "True" ]]; then
if [[ $IS_PRO_VERSION = "true" ]]; then
LD_LIBRARY_PATH=${SEAFILE_LD_LIBRARY_PATH} ${INSTALLPATH}/seafile/bin/seaf-server \
-F ${SEAFILE_CENTRAL_CONF_DIR} \
-d ${SEAFILE_CONF_DIR} \

View File

@ -21,7 +21,6 @@ pro_pylibs_dir=${INSTALLPATH}/pro/python
seafesdir=$pro_pylibs_dir/seafes
seahubdir=${INSTALLPATH}/seahub
seafile_rpc_pipe_path=${INSTALLPATH}/runtime
IS_PRO_SEAFEVENTS=`awk '/is_pro/{getline;print $2;exit}' ${pro_pylibs_dir}/seafevents/seafevents_api.py`
export PATH=${INSTALLPATH}/seafile/bin:$PATH
export ORIG_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
@ -151,7 +150,7 @@ function start_seafile_server () {
mkdir -p $TOPDIR/pids
# seaf-server
if [[ $IS_PRO_SEAFEVENTS = "True" ]]; then
if [[ $IS_PRO_VERSION = "true" ]]; then
LD_LIBRARY_PATH=${SEAFILE_LD_LIBRARY_PATH} ${INSTALLPATH}/seafile/bin/seaf-server \
-F ${SEAFILE_CENTRAL_CONF_DIR} \
-d ${SEAFILE_CONF_DIR} \

View File

@ -28,7 +28,6 @@ gunicorn_exe=${INSTALLPATH}/seahub/thirdpart/bin/gunicorn
pro_pylibs_dir=${INSTALLPATH}/pro/python
seafesdir=$pro_pylibs_dir/seafes
seahubdir=${INSTALLPATH}/seahub
IS_PRO_SEAFEVENTS=`awk '/is_pro/{getline;print $2;exit}' ${pro_pylibs_dir}/seafevents/seafevents_api.py`
script_name=$0
function usage () {
@ -150,7 +149,7 @@ function before_start() {
validate_seahub_running;
prepare_seahub_log_dir;
if [[ $IS_PRO_SEAFEVENTS = "True" ]]; then
if [[ $IS_PRO_VERSION = "true" ]]; then
if [[ -z "$LANG" ]]; then
echo "LANG is not set in ENV, set to en_US.UTF-8"
export LANG='en_US.UTF-8'

View File

@ -10,7 +10,6 @@ default_conf_dir=${TOPDIR}/conf
default_pids_dir=${TOPDIR}/pids
default_logs_dir=${TOPDIR}/logs
pro_pylibs_dir=${INSTALLPATH}/pro/python
IS_PRO_SEAFEVENTS=`awk '/is_pro/{getline;print $2;exit}' ${pro_pylibs_dir}/seafevents/seafevents_api.py`
export SEAFILE_LD_LIBRARY_PATH=${INSTALLPATH}/seafile/lib/:${INSTALLPATH}/seafile/lib64:${LD_LIBRARY_PATH}
@ -18,7 +17,7 @@ server_manual_http='https://download.seafile.com/published/seafile-manual/home.m
function welcome () {
echo "-----------------------------------------------------------------"
if [[ $IS_PRO_SEAFEVENTS = "True" ]]; then
if [[ $IS_PRO_VERSION = "true" ]]; then
echo "This script will guide you to config and setup your seafile professional server."
else
echo "This script will guide you to config and setup your seafile server."