mirror of
https://github.com/SystemRage/py-kms.git
synced 2024-11-22 08:15:38 +01:00
Work with py2
This commit is contained in:
parent
dddc02530b
commit
041df7f5ce
@ -25,7 +25,7 @@ _py-kms_ is a port of node-kms created by [cyrozap](http://forums.mydigitallife.
|
||||
|
||||
# Usage
|
||||
```
|
||||
docker run -d --name py3-kms \
|
||||
docker run -it -d --name py3-kms \
|
||||
-p 8080:8080 \
|
||||
-p 1688:1688 \
|
||||
-e IP=0.0.0.0 \
|
||||
|
@ -50,7 +50,7 @@ ENV SQLITE false
|
||||
|
||||
# EN: hwid
|
||||
# RU: hwid
|
||||
ENV HWID 364F463A8863D35F
|
||||
ENV HWID "364F463A8863D35F"
|
||||
# Use this flag to specify a HWID.
|
||||
# The HWID must be an 16-character string of hex characters.
|
||||
# The default is "364F463A8863D35F" or type "RANDOM" to auto generate the HWID.
|
||||
@ -107,7 +107,7 @@ chmod a+x /usr/bin/start.sh && \
|
||||
|
||||
# EN: Clear after install software
|
||||
# RU: Очистка после установки программного обеспечения
|
||||
apk del git py2-pip
|
||||
apk del git
|
||||
|
||||
# Set Workdir
|
||||
WORKDIR /home/py-kms
|
||||
|
@ -1,6 +1,6 @@
|
||||
docker stop py2-kms
|
||||
docker rm py2-kms
|
||||
docker run -d --name py2-kms \
|
||||
docker run -it -d --name py2-kms \
|
||||
-p 8080:8080 \
|
||||
-p 1688:1688 \
|
||||
-e IP=0.0.0.0 \
|
||||
|
@ -27,12 +27,12 @@ else
|
||||
then
|
||||
/bin/bash -c "/usr/bin/python pykms_Server.py ${IP} ${PORT} -l ${LCID} -c ${CLIENT_COUNT} -a ${ACTIVATION_INTERVAL} -r ${RENEWAL_INTERVAL} -s -w ${HWID} -V ${LOGLEVEL} -F ${LOGFILE} &"
|
||||
sleep 5
|
||||
/usr/bin/python pykms_Client.py ${IP} ${PORT} -m Windows10 &
|
||||
/usr/bin/python pykms_Client.py ${IP} ${PORT} -m Windows7 &
|
||||
/usr/bin/python /home/sqlite_web/sqlite_web.py -H ${IP} -x ${PWD}/clients.db
|
||||
else
|
||||
/bin/bash -c "/usr/bin/python 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} &"
|
||||
sleep 5
|
||||
/usr/bin/python pykms_Client.py ${IP} ${PORT} -m Windows10 &
|
||||
/usr/bin/python pykms_Client.py ${IP} ${PORT} -m Windows7 &
|
||||
/usr/bin/python /home/sqlite_web/sqlite_web.py -H ${IP} -x ${PWD}/clients.db
|
||||
fi
|
||||
else
|
||||
@ -40,12 +40,12 @@ else
|
||||
then
|
||||
/bin/bash -c "/usr/bin/python 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} &"
|
||||
sleep5
|
||||
/usr/bin/python pykms_Client.py ${IP} ${PORT} -m Windows10 &
|
||||
/usr/bin/python pykms_Client.py ${IP} ${PORT} -m Windows7 &
|
||||
/usr/bin/python /home/sqlite_web/sqlite_web.py -H ${IP} -x ${PWD}/clients.db
|
||||
else
|
||||
/bin/sh -c "/usr/bin/python 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} &"
|
||||
sleep 5
|
||||
/usr/bin/python pykms_Client.py ${IP} ${PORT} -m Windows10 &
|
||||
/usr/bin/python pykms_Client.py ${IP} ${PORT} -m Windows7 &
|
||||
/usr/bin/python /home/sqlite_web/sqlite_web.py -H ${IP} -x ${PWD}/clients.db
|
||||
fi
|
||||
fi
|
||||
|
@ -1,6 +1,6 @@
|
||||
docker stop py3-kms
|
||||
docker rm py3-kms
|
||||
docker run -d --name py3-kms \
|
||||
docker run -it -d --name py3-kms \
|
||||
-p 8080:8080 \
|
||||
-p 1688:1688 \
|
||||
-e IP=0.0.0.0 \
|
||||
|
Loading…
Reference in New Issue
Block a user