2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-25 14:59:14 +01:00

update outline-ss-server

This commit is contained in:
kev
2024-08-16 15:18:23 +08:00
parent 3255f424ca
commit 60f8d9f257
3 changed files with 15 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -euo pipefail
DATE=$(date +%Y-%m)
wget -O ip-asn.mmdb.gz https://download.db-ip.com/free/dbip-asn-lite-$DATE.mmdb.gz
wget -O ip-country.mmdb.gz https://download.db-ip.com/free/dbip-country-lite-$DATE.mmdb.gz
systemctl stop outline-ss-server
gunzip -f ip-asn.mmdb.gz ip-country.mmdb.gz
systemctl start outline-ss-server