Make it a little faster, queue is in sqlite now, fix db bug and more
This commit is contained in:
5
package/postinstall.sh
Normal file
5
package/postinstall.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
useradd --system --create-home --shell /usr/sbin/nologin tytd2025 || true
|
||||
|
||||
if command -v deb-systemd-helper >/dev/null 2>&1; then
|
||||
deb-systemd-helper enable tytd2025
|
||||
fi
|
||||
3
package/preremove.sh
Normal file
3
package/preremove.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
if command -v deb-systemd-helper >/dev/null 2>&1; then
|
||||
deb-systemd-helper disable tytd2025
|
||||
fi
|
||||
14
package/systemd/tytd2025.service
Normal file
14
package/systemd/tytd2025.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Tesses YouTube Downloader
|
||||
Documentation=https://git.tesses.org/tesses50/tytd2025
|
||||
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/tytd2025
|
||||
Restart=on-failure
|
||||
User=tytd2025
|
||||
StandardOutput=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
2
package/usrbin/tytd2025
Executable file
2
package/usrbin/tytd2025
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env sh
|
||||
exec crosslang vm "/opt/tytd2025/tytd2025.crvm" --port=3255
|
||||
Reference in New Issue
Block a user