luci-app-vlmcsd: fix fatch ()

Co-authored-by: EnnawYang <6705663+EnnawYang@users.noreply.github.com>
This commit is contained in:
Beginner 2021-11-10 15:33:26 +08:00 committed by GitHub
parent 04d5160fa8
commit ac2d41bd27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
package/lean
luci-app-vlmcsd/root/etc/init.d
vlmcsd/files

View File

@ -29,7 +29,7 @@ start() {
config_load vlmcsd
config_foreach get_config vlmcsd
[ $enabled -eq 0 ] && exit 0
/usr/bin/vlmcsd -i /etc/vlmcsd.ini -L 0.0.0.0:1688
/usr/bin/vlmcsd -i /etc/vlmcsd/vlmcsd.ini -L 0.0.0.0:1688
echo "KMS Server has started."
if [ $autoactivate -eq 1 ]; then

View File

@ -5,7 +5,7 @@ START=90
start(){
if [ ! -f "/tmp/vlmcsd.pid" ]; then
/usr/bin/vlmcsd -i /etc/vlmcsd.ini -p /tmp/vlmcsd.pid -L 0.0.0.0:1688
/usr/bin/vlmcsd -i /etc/vlmcsd/vlmcsd.ini -p /tmp/vlmcsd.pid -L 0.0.0.0:1688
iptables -D input_rule -p tcp --dport 1688 -j ACCEPT
iptables -A input_rule -p tcp --dport 1688 -j ACCEPT
sed -i '/## luci-app-vlmcsd/d' /etc/firewall.user