Browse Source

style: add newline at end of file

master
dnomd343 3 years ago
parent
commit
0af09b8b69
  1. 1
      .gitignore
  2. 2
      backend/kms-cli.php
  3. 2
      backend/kms-help.php
  4. 2
      backend/kms-keys.php
  5. 2
      backend/kms-office.php
  6. 2
      backend/kms-web.php
  7. 10
      conf/docker/iconv.sh
  8. 2
      conf/docker/init.sh
  9. 2
      conf/docker/kms.conf
  10. 2
      conf/docker/nginx.conf
  11. 5
      conf/docker/vlmcsd.sh
  12. 2
      conf/nginx/docker.conf
  13. 2
      conf/nginx/kms.conf
  14. 2
      conf/vlmcsd.service

1
.gitignore

@ -0,0 +1 @@
/.idea/

2
backend/kms-cli.php

@ -49,4 +49,4 @@ function showWinServerKeys() { // 显示Windows Server的KMS密钥
showKmsKeys($kmsKeys);
}
?>
?>

2
backend/kms-help.php

@ -44,4 +44,4 @@ function webHelp() {
echo '">KMS_KEY (Windows Server)</a></p></div></body></html>';
}
?>
?>

2
backend/kms-keys.php

@ -40,4 +40,4 @@ function getKmsKeys($type) { // 获取所有版本的KMS密钥
return $data;
}
?>
?>

2
backend/kms-office.php

@ -112,4 +112,4 @@ function webOfficeHelp() { // 网页输出Office激活帮助
echo '</div></body></html>';
}
?>
?>

2
backend/kms-web.php

@ -31,4 +31,4 @@ function webWinServerKeys() { // 网页显示Windows Server的KMS密钥
webKmsKeys($kmsKeys, 'Windows Server KMS Keys');
}
?>
?>

10
conf/docker/iconv.sh

@ -3,20 +3,20 @@ mkdir -p /tmp
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz -O /tmp/libiconv.tar.gz
tar xf /tmp/libiconv.tar.gz -C /tmp
cd /tmp/libiconv-1.16/
cd /tmp/libiconv-1.16/ || exit
sed -i 's/_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");/#if HAVE_RAW_DECL_GETS\n_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");\n#endif/g' srclib/stdio.in.h
./configure --prefix=/usr/local
make && make install
php_version=`php -r "phpinfo();" | grep "PHP Version" | head -1`
php_version=$(php -r "phpinfo();" | grep "PHP Version" | head -1)
php_version=${php_version#*=> }
wget http://php.net/distributions/php-$php_version.tar.gz -O /tmp/php.tar.gz
wget http://php.net/distributions/php-"$php_version".tar.gz -O /tmp/php.tar.gz
tar xf /tmp/php.tar.gz -C /tmp
cd /tmp/php-$php_version/ext/iconv
cd /tmp/php-"$php_version"/ext/iconv || exit
phpize
./configure --with-iconv=/usr/local
make && make install
mkdir /tmp/iconv
cp /usr/local/lib/libiconv.so /tmp/iconv
cp /usr/lib/php7/modules/iconv.so /tmp/iconv
cp /usr/lib/php7/modules/iconv.so /tmp/iconv

2
conf/docker/init.sh

@ -1,4 +1,4 @@
/usr/sbin/php-fpm7
/usr/sbin/nginx
echo "KMS-Server initialization completed."
/usr/bin/vlmcsd -De
/usr/bin/vlmcsd -De

2
conf/docker/kms.conf

@ -14,4 +14,4 @@ server {
}
location /assets {}
}
}

2
conf/docker/nginx.conf

@ -10,4 +10,4 @@ events {
http {
include /etc/nginx/mime.types;
include /etc/nginx/kms.conf;
}
}

5
conf/docker/vlmcsd.sh

@ -1,9 +1,8 @@
apk add --no-cache git make build-base
git clone --branch master --single-branch https://github.com/Wind4/vlmcsd.git /tmp/vlmcsd-build
cd /tmp/vlmcsd-build
make
cd /tmp/vlmcsd-build || exit && make
mkdir /tmp/vlmcsd
cp /tmp/vlmcsd-build/bin/vlmcs /tmp/vlmcsd/
cp /tmp/vlmcsd-build/bin/vlmcsd /tmp/vlmcsd/
cp /tmp/vlmcsd-build/etc/vlmcsd.kmd /tmp/vlmcsd/
rm -rf /tmp/vlmcsd-build
rm -rf /tmp/vlmcsd-build

2
conf/nginx/docker.conf

@ -30,4 +30,4 @@ server {
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:1689;
}
}
}

2
conf/nginx/kms.conf

@ -48,4 +48,4 @@ server {
}
location /assets {}
}
}

2
conf/vlmcsd.service

@ -10,4 +10,4 @@ ExecStop=/bin/kill -HUP $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

Loading…
Cancel
Save