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:
11
outline-ss-server/data/update.sh
Executable file
11
outline-ss-server/data/update.sh
Executable 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
|
||||
Reference in New Issue
Block a user