mirror of
https://github.com/SystemRage/py-kms.git
synced 2024-11-21 15:55:37 +01:00
Merge pull request #125 from Simonmicro/master
Merged fix of #122 (explicitly set the default variable for the db path)
This commit is contained in:
commit
a3b0c85b5b
@ -1,6 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# EN: Start daemons
|
|
||||||
# RU: Запуск демонов
|
|
||||||
cd /home/py-kms
|
cd /home/py-kms
|
||||||
if [ "$SQLITE" == false ];
|
if [ "$SQLITE" == false ];
|
||||||
then
|
then
|
||||||
@ -25,12 +23,12 @@ else
|
|||||||
then
|
then
|
||||||
if [ "$LOGSIZE" == "" ];
|
if [ "$LOGSIZE" == "" ];
|
||||||
then
|
then
|
||||||
/bin/bash -c "/usr/bin/python3 pykms_Server.py ${IP} ${PORT} -l ${LCID} -c ${CLIENT_COUNT} -a ${ACTIVATION_INTERVAL} -r ${RENEWAL_INTERVAL} -s -w ${HWID} -V ${LOGLEVEL} -F ${LOGFILE} &"
|
/bin/bash -c "/usr/bin/python3 pykms_Server.py ${IP} ${PORT} -l ${LCID} -c ${CLIENT_COUNT} -a ${ACTIVATION_INTERVAL} -r ${RENEWAL_INTERVAL} -s ${PWD}/pykms_database.db -w ${HWID} -V ${LOGLEVEL} -F ${LOGFILE} &"
|
||||||
sleep 5
|
sleep 5
|
||||||
/usr/bin/python3 pykms_Client.py ${IP} ${PORT} -m Windows10 &
|
/usr/bin/python3 pykms_Client.py ${IP} ${PORT} -m Windows10 &
|
||||||
/usr/bin/python3 /home/sqlite_web/sqlite_web.py -H ${IP} -x ${PWD}/pykms_database.db --read-only
|
/usr/bin/python3 /home/sqlite_web/sqlite_web.py -H ${IP} -x ${PWD}/pykms_database.db --read-only
|
||||||
else
|
else
|
||||||
/bin/bash -c "/usr/bin/python3 pykms_Server.py ${IP} ${PORT} -l ${LCID} -c ${CLIENT_COUNT} -a ${ACTIVATION_INTERVAL} -r ${RENEWAL_INTERVAL} -s -w ${HWID} -V ${LOGLEVEL} -F ${LOGFILE} -S ${LOGSIZE} &"
|
/bin/bash -c "/usr/bin/python3 pykms_Server.py ${IP} ${PORT} -l ${LCID} -c ${CLIENT_COUNT} -a ${ACTIVATION_INTERVAL} -r ${RENEWAL_INTERVAL} -s ${PWD}/pykms_database.db -w ${HWID} -V ${LOGLEVEL} -F ${LOGFILE} -S ${LOGSIZE} &"
|
||||||
sleep 5
|
sleep 5
|
||||||
/usr/bin/python3 pykms_Client.py ${IP} ${PORT} -m Windows10 &
|
/usr/bin/python3 pykms_Client.py ${IP} ${PORT} -m Windows10 &
|
||||||
/usr/bin/python3 /home/sqlite_web/sqlite_web.py -H ${IP} -x ${PWD}/pykms_database.db --read-only
|
/usr/bin/python3 /home/sqlite_web/sqlite_web.py -H ${IP} -x ${PWD}/pykms_database.db --read-only
|
||||||
@ -38,12 +36,12 @@ else
|
|||||||
else
|
else
|
||||||
if [ "$LOGSIZE" == "" ];
|
if [ "$LOGSIZE" == "" ];
|
||||||
then
|
then
|
||||||
/bin/bash -c "/usr/bin/python3 pykms_Server.py ${IP} ${PORT} -e ${EPID} -l ${LCID} -c ${CLIENT_COUNT} -a ${ACTIVATION_INTERVAL} -r ${RENEWAL_INTERVAL} -s -w ${HWID} -V ${LOGLEVEL} -F ${LOGFILE} &"
|
/bin/bash -c "/usr/bin/python3 pykms_Server.py ${IP} ${PORT} -e ${EPID} -l ${LCID} -c ${CLIENT_COUNT} -a ${ACTIVATION_INTERVAL} -r ${RENEWAL_INTERVAL} -s ${PWD}/pykms_database.db -w ${HWID} -V ${LOGLEVEL} -F ${LOGFILE} &"
|
||||||
sleep 5
|
sleep 5
|
||||||
/usr/bin/python3 pykms_Client.py ${IP} ${PORT} -m Windows10 &
|
/usr/bin/python3 pykms_Client.py ${IP} ${PORT} -m Windows10 &
|
||||||
/usr/bin/python3 /home/sqlite_web/sqlite_web.py -H ${IP} -x ${PWD}/pykms_database.db --read-only
|
/usr/bin/python3 /home/sqlite_web/sqlite_web.py -H ${IP} -x ${PWD}/pykms_database.db --read-only
|
||||||
else
|
else
|
||||||
/bin/sh -c "/usr/bin/python3 pykms_Server.py ${IP} ${PORT} -e ${EPID} -l ${LCID} -c ${CLIENT_COUNT} -a ${ACTIVATION_INTERVAL} -r ${RENEWAL_INTERVAL} -s -w ${HWID} -V ${LOGLEVEL} -F ${LOGFILE} -S ${LOGSIZE} &"
|
/bin/sh -c "/usr/bin/python3 pykms_Server.py ${IP} ${PORT} -e ${EPID} -l ${LCID} -c ${CLIENT_COUNT} -a ${ACTIVATION_INTERVAL} -r ${RENEWAL_INTERVAL} -s ${PWD}/pykms_database.db -w ${HWID} -V ${LOGLEVEL} -F ${LOGFILE} -S ${LOGSIZE} &"
|
||||||
sleep 5
|
sleep 5
|
||||||
/usr/bin/python3 pykms_Client.py ${IP} ${PORT} -m Windows10 &
|
/usr/bin/python3 pykms_Client.py ${IP} ${PORT} -m Windows10 &
|
||||||
/usr/bin/python3 /home/sqlite_web/sqlite_web.py -H ${IP} -x ${PWD}/pykms_database.db --read-only
|
/usr/bin/python3 /home/sqlite_web/sqlite_web.py -H ${IP} -x ${PWD}/pykms_database.db --read-only
|
||||||
|
Loading…
Reference in New Issue
Block a user