diff --git a/bin/init.bat b/bin/init.bat index 1595bb2ab0..3b15ea8b81 100644 --- a/bin/init.bat +++ b/bin/init.bat @@ -65,6 +65,15 @@ if %requestType% == 'PATH_INFO' ( echo %computeburn% > %baseDir%computeburn.bat echo computeburn.bat ok +:: create computetaskeffort.bat +if %requestType% == 'PATH_INFO' ( + SET computetaskeffort= %phpcli% %baseDir%ztcli "%pmsRoot%/project-computetaskeffort" +)else ( + SET computetaskeffort= %phpcli% %baseDir%ztcli "%pmsRoot%/index.php?m=project&f=computetaskeffort" +) +echo %computetaskeffort% > %baseDir%computetaskeffort.bat +echo computetaskeffort.bat ok + :: create checkdb.bat if %requestType% == 'PATH_INFO' ( SET checkdb= %phpcli% %baseDir%ztcli "%pmsRoot%/admin-checkdb" diff --git a/bin/init.sh b/bin/init.sh index ae5053b7f6..5874a549ae 100755 --- a/bin/init.sh +++ b/bin/init.sh @@ -59,6 +59,15 @@ fi echo $computeburn > $basePath/computeburn.sh echo "computeburn.sh ok" +# compute task effort. +if [ $requestType == 'PATH_INFO' ]; then + computetaskeffort="$phpcli $basePath/ztcli '$pmsRoot/project-computetaskeffort'"; +else + computetaskeffort="$phpcli $basePath/ztcli '$pmsRoot/index.php?m=project&f=computetaskeffort'"; +fi +echo $computetaskeffort > $basePath/computetaskeffort.sh +echo "computetaskeffort.sh ok" + # daily remind if [ $requestType == 'PATH_INFO' ]; then checkdb="$phpcli $basePath/ztcli '$pmsRoot/report-remind'";