File tree Expand file tree Collapse file tree 6 files changed +18
-5
lines changed Expand file tree Collapse file tree 6 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 9
9
# #
10
10
# ###################################################################################################################################################################################################################################################################
11
11
#
12
- CFLAGS = '-DEMM_VERSION="OpenEMM 23.04.000.199 "' -I. -I../lib -Iinclude
12
+ CFLAGS = '-DEMM_VERSION="OpenEMM 23.04.000.214 "' -I. -I../lib -Iinclude
13
13
LDFLAGS = -L. -L../lib -Llib
14
14
LIBS = -lagn -lslang -lopendkim -lbsd -lresolv -llua -lmpack -lssl -lcrypto -lxml2 -lz -lm
15
15
SRCS = entity.c xmlback.c parse.c create.c replace.c modify.c protect.c convert.c append.c \
Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ PATH="`$pathstrip -s \"$PATH\"`"
523
523
export PATH
524
524
#
525
525
if [ " $CLASSPATH " ] ; then
526
- CLASSPATH=" ` $pathstrip \" $CLASSPATH \" ` "
526
+ CLASSPATH=" ` $pathstrip -cb \" $CLASSPATH \" ` "
527
527
export CLASSPATH
528
528
fi
529
529
#
Original file line number Diff line number Diff line change @@ -425,7 +425,14 @@ def sendConfigAndLogsAction(actionParameters):
425
425
if len (password ) > 0 :
426
426
print ("Creating config and logs data zip file. This may take a moment." )
427
427
428
- applicationUserName = Environment .getApplicationUserName ()
428
+ if EMTUtilities .hasRootPermissions ():
429
+ if Environment .applicationName == "OpenEMM" :
430
+ applicationUserName = "openemm"
431
+ else :
432
+ applicationUserName = "console"
433
+ else :
434
+ applicationUserName = Environment .username
435
+
429
436
applicationUserTempDirectory = "/home/" + applicationUserName + "/temp"
430
437
if not os .path .isdir (applicationUserTempDirectory ):
431
438
EMTUtilities .createDirectory (applicationUserTempDirectory , applicationUserName )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class Environment:
24
24
# OpenEMM and EMM specific settings start here #
25
25
################################################
26
26
27
- toolVersion = "23.04.032 "
27
+ toolVersion = "23.04.033 "
28
28
toolName = None
29
29
30
30
applicationName = None
Original file line number Diff line number Diff line change 8
8
# You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. #
9
9
# #
10
10
####################################################################################################################################################################################################################################################################
11
+ import sys
11
12
import os
12
13
import shutil
13
14
import subprocess
@@ -133,6 +134,11 @@ def restartMenuAction(actionParameters):
133
134
else :
134
135
Environment .messages .append ("Restart canceled" )
135
136
137
+ def restartEMT (actionParameters ):
138
+ print (Colors .YELLOW + "Restarting EMT: " + str (Environment .scriptFilePath ) + Colors .DEFAULT )
139
+ os .execl (sys .executable , Environment .scriptFilePath , * sys .argv )
140
+ sys .exit (0 )
141
+
136
142
def dbTableFormatCheckMenuAction (actionParameters ):
137
143
print (Environment .applicationName + "MariaDB table format check" )
138
144
print ("Check database table format and set 'ROW_FORMAT = DYNAMIC'? (N/y, Blank => Cancel):" )
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def configureTool():
35
35
36
36
# OpenEMM at GitHub: https://github.com/agnitas-org/OpenEMM
37
37
Environment .applicationName = "OpenEMM"
38
- Environment .scriptFilePath = os .path .dirname (os .path .realpath (__file__ ))
38
+ Environment .scriptFilePath = os .path .dirname (os .path .realpath (__file__ )) + "/OMT.py"
39
39
40
40
if os .path .isfile ("/home/" + os .getlogin () + "/.OMT/OMT.override.properties" ):
41
41
customProperty = EMTUtilities .readPropertiesFile ("/home/" + os .getlogin () + "/.OMT/OMT.override.properties" )
You can’t perform that action at this time.
0 commit comments