Compare commits
6 Commits
remove_sys
...
main
Author | SHA1 | Date |
---|---|---|
|
04c9cd7950 | |
|
bc50845742 | |
|
c964ab75da | |
|
acc5f3d445 | |
|
6a62c44ce4 | |
|
61e2e2468d |
|
@ -6,6 +6,9 @@
|
|||
|
||||
- OgGit functionality (#2371, #2363, #2363, #2317)
|
||||
|
||||
### Removed
|
||||
- Removed unused BitTorrent-related packages and logic
|
||||
|
||||
## [0.9.0] - 2025-06-25
|
||||
|
||||
## Added
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
api/* /opt/opengnsys/ogrepository/api/
|
||||
bin/* /opt/opengnsys/ogrepository/bin/
|
||||
etc/* /opt/opengnsys/ogrepository/etc/
|
||||
installer/files/ctorrent.sources /etc/apt/sources.list.d/
|
||||
installer/files/ogrepo-api.service /etc/systemd/system/
|
||||
installer/files/ogrepo-smb.conf /etc/samba/
|
||||
installer/ssh-keys/* /opt/opengnsys/ogrepository/etc/
|
||||
|
|
|
@ -40,18 +40,6 @@ USER="opengnsys"
|
|||
|
||||
# Provisionar base de datos si es necesario en caso de instalación.
|
||||
|
||||
|
||||
# Detectar si es una instalación nueva o una actualización
|
||||
# if [ "$1" = "configure" ] && [ -z "$2" ]; then
|
||||
# systemd-run --no-block /bin/bash -c "
|
||||
# sleep 10;
|
||||
# apt update -y;
|
||||
# for pkg in bittorrent bittornado ctorrent; do
|
||||
# if ! dpkg -l | grep -qw \"\$pkg\"; then
|
||||
# apt install -y \"\$pkg\"
|
||||
# fi
|
||||
# done
|
||||
# "
|
||||
if [ "$1" = "configure" ] && [ -z "$2" ]; then
|
||||
|
||||
sed -i "s/%%OGREPOSITORY_USER%%/$SAMBA_USER/g" /etc/systemd/system/ogrepo-api.service
|
||||
|
@ -140,39 +128,8 @@ systemctl daemon-reload
|
|||
systemctl enable ogrepo-api
|
||||
systemctl restart ogrepo-api
|
||||
systemctl restart smbd
|
||||
systemctl enable --now opentracker || true
|
||||
systemctl restart opentracker || true
|
||||
|
||||
# echo "ogrepository-trigger" > /var/lib/dpkg/triggers/ogrepository.trigger
|
||||
# POST_INVOKE_SCRIPT="/var/lib/dpkg/info/ogrepository.trigger"
|
||||
|
||||
# echo "Registrando post-invoke para instalación de paquetes adicionales..."
|
||||
|
||||
# cat <<EOF > "$POST_INVOKE_SCRIPT"
|
||||
# #!/bin/sh
|
||||
# set -e
|
||||
|
||||
# echo "Ejecutando post-trigger: Instalando bittorrent, bittornado y ctorrent..."
|
||||
|
||||
# export DEBIAN_FRONTEND=noninteractive
|
||||
# apt-get update
|
||||
# apt-get install -y bittorrent bittornado ctorrent
|
||||
|
||||
# echo "Instalación de paquetes adicionales completada."
|
||||
|
||||
# exit 0
|
||||
# EOF
|
||||
|
||||
# chmod +x "$POST_INVOKE_SCRIPT"
|
||||
|
||||
# # Intentar ejecutar el script ahora si no hay otro proceso de apt corriendo
|
||||
# if ! pgrep -x "apt" > /dev/null; then
|
||||
# echo "Ejecutando instalación de paquetes adicionales inmediatamente..."
|
||||
# "$POST_INVOKE_SCRIPT"
|
||||
# else
|
||||
# echo "Apt está en uso, los paquetes se instalarán después."
|
||||
# fi
|
||||
|
||||
# find /opt/opengnsys/ogrepository -type f -name "*.py" -exec chmod +x {} \;
|
||||
|
||||
# dpkg-trigger --by-package=ogrepository ogrepository-trigger
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
Types: deb
|
||||
URIs: http://ftp.de.debian.org/debian
|
||||
Suites: buster
|
||||
Components: main
|
||||
Signed-By: /usr/share/keyrings/debian-archive-buster-stable.gpg
|
||||
|
Loading…
Reference in New Issue