mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 01:44:13 +00:00
Merge pull request #5395 from haiwen/fix-seafile.sh-notification-server
fix-seafile.sh-notification-server
This commit is contained in:
@@ -54,7 +54,7 @@ ENABLE_NOTIFICATION_SERVER=`awk -F '=' '/\[notification\]/{a=1}a==1&&$1~/^enable
|
||||
log "Start Monitor"
|
||||
|
||||
while [ 1 ]; do
|
||||
if [ $ENABLE_NOTIFICATION_SERVER = "true" ]; then
|
||||
if [ $ENABLE_NOTIFICATION_SERVER ] && [ $ENABLE_NOTIFICATION_SERVER = "true" ]; then
|
||||
monitor_notification_server
|
||||
fi
|
||||
|
||||
|
@@ -154,7 +154,7 @@ function start_seafile_server () {
|
||||
|
||||
# notification-sever
|
||||
ENABLE_NOTIFICATION_SERVER=`awk -F '=' '/\[notification\]/{a=1}a==1&&$1~/^enabled/{print $2;exit}' ${central_config_dir}/seafile.conf`
|
||||
if [ $ENABLE_NOTIFICATION_SERVER == "true" ]; then
|
||||
if [ $ENABLE_NOTIFICATION_SERVER ] && [ $ENABLE_NOTIFICATION_SERVER = "true" ]; then
|
||||
notification-server -c ${central_config_dir} -l ${TOPDIR}/logs/notification-server.log &
|
||||
${INSTALLPATH}/seafile-monitor.sh &>> ${TOPDIR}/logs/seafile-monitor.log &
|
||||
fi
|
||||
|
Reference in New Issue
Block a user