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
|
# /// script
|
||||||
# dependencies = [
|
# dependencies = [
|
||||||
# "requests",
|
# "requests",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env -S uv run --script
|
||||||
# /// script
|
# /// script
|
||||||
# dependencies = [
|
# dependencies = [
|
||||||
# "requests",
|
# "requests",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env -S uv run --script
|
||||||
# /// script
|
# /// script
|
||||||
# dependencies = [
|
# dependencies = [
|
||||||
# "qbittorrent-api",
|
# "qbittorrent-api",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env -S uv run --script
|
||||||
# /// script
|
# /// script
|
||||||
# dependencies = [
|
# dependencies = [
|
||||||
# "qbittorrent-api",
|
# "qbittorrent-api",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env -S uv run --script
|
||||||
# /// script
|
# /// script
|
||||||
# dependencies = [
|
# dependencies = [
|
||||||
# "resend",
|
# "resend",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env -S uv run --script
|
||||||
# /// script
|
# /// script
|
||||||
# dependencies = [
|
# dependencies = [
|
||||||
# "qbittorrent-api",
|
# "qbittorrent-api",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env -S uv run --script
|
||||||
# /// script
|
# /// script
|
||||||
# dependencies = [
|
# dependencies = [
|
||||||
# "qbittorrent-api",
|
# "qbittorrent-api",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env -S uv run --script
|
||||||
# /// script
|
# /// script
|
||||||
# dependencies = [
|
# dependencies = [
|
||||||
# "resend",
|
# "resend",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env -S uv run --script
|
||||||
# /// script
|
# /// script
|
||||||
# dependencies = [
|
# dependencies = [
|
||||||
# "qbittorrent-api",
|
# "qbittorrent-api",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/env -S uv run --script
|
||||||
# /// script
|
# /// script
|
||||||
# dependencies = [
|
# dependencies = [
|
||||||
# "yaml",
|
# "yaml",
|
@ -1,11 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
port=$(/usr/local/bin/natpmpc -a 1 0 udp 60 -g 10.2.0.1 | grep "Mapped public port" | awk '{print $4}')
|
port=$(/usr/local/bin/natpmpc -a 1 0 udp 60 -g 10.2.0.1 | grep "Mapped public port" | awk '{print $4}')
|
||||||
|
echo $port | tee /usr/local/etc/natvpn_port.txt
|
||||||
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
|
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
date
|
date
|
||||||
|
Loading…
x
Reference in New Issue
Block a user