Use uv in shebang
This commit is contained in:
parent
6d15f145a5
commit
6951f29a26
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env -S uv run --script
|
||||
# /// script
|
||||
# dependencies = [
|
||||
# "requests",
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env -S uv run --script
|
||||
# /// script
|
||||
# dependencies = [
|
||||
# "requests",
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env -S uv run --script
|
||||
# /// script
|
||||
# dependencies = [
|
||||
# "qbittorrent-api",
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env -S uv run --script
|
||||
# /// script
|
||||
# dependencies = [
|
||||
# "qbittorrent-api",
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env -S uv run --script
|
||||
# /// script
|
||||
# dependencies = [
|
||||
# "resend",
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env -S uv run --script
|
||||
# /// script
|
||||
# dependencies = [
|
||||
# "qbittorrent-api",
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env -S uv run --script
|
||||
# /// script
|
||||
# dependencies = [
|
||||
# "qbittorrent-api",
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env -S uv run --script
|
||||
# /// script
|
||||
# dependencies = [
|
||||
# "resend",
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env -S uv run --script
|
||||
# /// script
|
||||
# dependencies = [
|
||||
# "qbittorrent-api",
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env -S uv run --script
|
||||
# /// script
|
||||
# dependencies = [
|
||||
# "yaml",
|
@ -1,11 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
port=$(/usr/local/bin/natpmpc -a 1 0 udp 60 -g 10.2.0.1 | grep "Mapped public port" | awk '{print $4}')
|
||||
|
||||
sed -i.bak 's|Session\\Port=[[:digit:]]*|Session\\Port='"${port}"'|g' /var/db/qbittorrent/conf/qBittorrent/config/qBittorrent.conf
|
||||
|
||||
killall -HUP qbittorrent-nox
|
||||
service qbittorrent start
|
||||
echo $port | tee /usr/local/etc/natvpn_port.txt
|
||||
|
||||
while true; do
|
||||
date
|
||||
|
Loading…
x
Reference in New Issue
Block a user