remove check TRAFFIC_FILE

This commit is contained in:
Whispering Wind
2024-07-05 13:04:52 +03:30
committed by GitHub
parent b1ad05463e
commit 206db64fca

10
user.sh
View File

@ -10,16 +10,6 @@ CONFIG_FILE="/etc/hysteria/config.json"
IFS=':' read -r USERNAME PASSWORD <<< "$AUTH"
if [ ! -f "$USERS_FILE" ]; then
echo "Users file not found!"
exit 1
fi
if [ ! -f "$TRAFFIC_FILE" ]; then
echo "Traffic data file not found!"
return 1
fi
STORED_PASSWORD=$(jq -r --arg user "$USERNAME" '.[$user].password' "$USERS_FILE")
MAX_DOWNLOAD_BYTES=$(jq -r --arg user "$USERNAME" '.[$user].max_download_bytes' "$USERS_FILE")
EXPIRATION_DAYS=$(jq -r --arg user "$USERNAME" '.[$user].expiration_days' "$USERS_FILE")