Browse Source

feat: update qqwry.dat at docker start

master
dnomd343 3 years ago
parent
commit
0c3f5c1165
  1. 3
      backend/qqwryUpdate.sh
  2. 2
      conf/docker/iconv.sh
  3. 4
      conf/docker/init.sh

3
backend/qqwryUpdate.sh

@ -29,4 +29,5 @@ EOF
php unlock.php
cd ..
cp -f temp/qqwry.dat qqwry.dat
rm -rf temp/
rm -rf temp/
echo "qqwry.dat update complete."

2
conf/docker/iconv.sh

@ -19,4 +19,4 @@ 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

4
conf/docker/init.sh

@ -1,4 +1,6 @@
/usr/sbin/php-fpm7
/usr/sbin/nginx
sh /var/www/echoIP/backend/qqwryUpdate.sh
/usr/sbin/crond
node /var/www/echoIP/backend/qqwryFormat/server.js
echo "echoIP is already running..."
node /var/www/echoIP/backend/qqwryFormat/server.js
Loading…
Cancel
Save