Skip to content

Commit 77eb368

Browse files
author
“Martin
committed
backend update to 23.04.000.214
1 parent 4cc7a4a commit 77eb368

File tree

6 files changed

+18
-5
lines changed

6 files changed

+18
-5
lines changed

backend/src/c/xmlback/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# #
1010
####################################################################################################################################################################################################################################################################
1111
#
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
1313
LDFLAGS = -L. -L../lib -Llib
1414
LIBS = -lagn -lslang -lopendkim -lbsd -lresolv -llua -lmpack -lssl -lcrypto -lxml2 -lz -lm
1515
SRCS = entity.c xmlback.c parse.c create.c replace.c modify.c protect.c convert.c append.c \

backend/src/script/lib/config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ PATH="`$pathstrip -s \"$PATH\"`"
523523
export PATH
524524
#
525525
if [ "$CLASSPATH" ] ; then
526-
CLASSPATH="`$pathstrip \"$CLASSPATH\"`"
526+
CLASSPATH="`$pathstrip -cb \"$CLASSPATH\"`"
527527
export CLASSPATH
528528
fi
529529
#

backend/src/script/tools/EMT_lib/ApplicationStatusMenu.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,14 @@ def sendConfigAndLogsAction(actionParameters):
425425
if len(password) > 0:
426426
print("Creating config and logs data zip file. This may take a moment.")
427427

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+
429436
applicationUserTempDirectory = "/home/" + applicationUserName + "/temp"
430437
if not os.path.isdir(applicationUserTempDirectory):
431438
EMTUtilities.createDirectory(applicationUserTempDirectory, applicationUserName)

backend/src/script/tools/EMT_lib/Environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Environment:
2424
# OpenEMM and EMM specific settings start here #
2525
################################################
2626

27-
toolVersion = "23.04.032"
27+
toolVersion = "23.04.033"
2828
toolName = None
2929

3030
applicationName = None

backend/src/script/tools/EMT_lib/SupplementalMenu.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# 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/>. #
99
# #
1010
####################################################################################################################################################################################################################################################################
11+
import sys
1112
import os
1213
import shutil
1314
import subprocess
@@ -133,6 +134,11 @@ def restartMenuAction(actionParameters):
133134
else:
134135
Environment.messages.append("Restart canceled")
135136

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+
136142
def dbTableFormatCheckMenuAction(actionParameters):
137143
print(Environment.applicationName + "MariaDB table format check")
138144
print("Check database table format and set 'ROW_FORMAT = DYNAMIC'? (N/y, Blank => Cancel):")

backend/src/script/tools/OMT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def configureTool():
3535

3636
# OpenEMM at GitHub: https://github.com/agnitas-org/OpenEMM
3737
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"
3939

4040
if os.path.isfile("/home/" + os.getlogin() + "/.OMT/OMT.override.properties"):
4141
customProperty = EMTUtilities.readPropertiesFile("/home/" + os.getlogin() + "/.OMT/OMT.override.properties")

0 commit comments

Comments
 (0)