Add default disable for simplehttp, and restart the service when the password changes.

This commit is contained in:
fewtarius 2023-12-23 12:46:41 +00:00
parent 9e8fe457ba
commit 1a1d2c32b7
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
3 changed files with 12 additions and 1 deletions

View file

@ -156,6 +156,7 @@ segacd.ratio=4/3
sfc.integerscale=0
sfc.ratio=4/3
sg-1000.integerscale=0
simplehttp.enabled=0
snesh.integerscale=0
snesh.ratio=4/3
snes.integerscale=0

View file

@ -32,3 +32,13 @@ if [ "${SYNCSTATUS}" = "1" ] &&
then
systemctl restart syncthing >/dev/null 2>&1
fi
# Restart simple-http-server if it is enabled
SIMPLESTATUS=$(get_setting simplehttp.enabled)
SIMPLEACTIVE=$(systemctl status simple-http-server | awk '/active/ {print $2}')
if [ "${SIMPLESTATUS}" = "1" ] &&
[ "${SIMPLEACTIVE}" = "active" ]
then
systemctl restart simple-http-server >/dev/null 2>&1
fi

View file

@ -3,7 +3,7 @@
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
PKG_NAME="emulationstation"
PKG_VERSION="ff285e753a28df10b0bb014f9f6e5981accfc2f0"
PKG_VERSION="695e3cd95896b8861214cec2a87467e1a5646f3d"
PKG_GIT_CLONE_BRANCH="main"
PKG_REV="1"
PKG_ARCH="any"