From 0c3f5c116578dad36d0629572d320ab459597aa9 Mon Sep 17 00:00:00 2001 From: dnomd343 Date: Sun, 11 Jul 2021 11:56:35 +0800 Subject: [PATCH] feat: update qqwry.dat at docker start --- backend/qqwryUpdate.sh | 3 ++- conf/docker/iconv.sh | 2 +- conf/docker/init.sh | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/backend/qqwryUpdate.sh b/backend/qqwryUpdate.sh index 770c360..1f9aab2 100755 --- a/backend/qqwryUpdate.sh +++ b/backend/qqwryUpdate.sh @@ -29,4 +29,5 @@ EOF php unlock.php cd .. cp -f temp/qqwry.dat qqwry.dat -rm -rf temp/ \ No newline at end of file +rm -rf temp/ +echo "qqwry.dat update complete." \ No newline at end of file diff --git a/conf/docker/iconv.sh b/conf/docker/iconv.sh index ec7ea0c..dbbc15e 100644 --- a/conf/docker/iconv.sh +++ b/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 \ No newline at end of file diff --git a/conf/docker/init.sh b/conf/docker/init.sh index 99ce53f..c2ebff3 100644 --- a/conf/docker/init.sh +++ b/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 \ No newline at end of file