diff --git a/debian/control b/debian/control index a33a545..c32ac9b 100644 --- a/debian/control +++ b/debian/control @@ -8,6 +8,6 @@ Build-Depends: debhelper-compat (= 12) Package: ogrepository Architecture: all Pre-Depends: debian-archive-keyring , debconf (>= 1.5.0), -Depends: ${misc:Depends}, git, python3, python3-pip, python3-flask, python3-paramiko, python3-psutil, python3-flasgger, samba, gunicorn, wakeonlan , lzop , partclone , qemu-utils , udpcast +Depends: ${misc:Depends}, git, python3, python3-pip, python3-flask, python3-paramiko, python3-psutil, python3-flasgger, samba, gunicorn, wakeonlan , lzop , partclone , qemu-utils , udpcast, uftp Description: Ogrepsoitory Package This package provides Ogrepsoitory service. diff --git a/debian/ogrepository.postinst b/debian/ogrepository.postinst index b2edec2..88200c2 100755 --- a/debian/ogrepository.postinst +++ b/debian/ogrepository.postinst @@ -69,6 +69,8 @@ done sed -i "s/SERVERIP/$OGREPO_IP/g" /opt/opengnsys/ogrepository/etc/ogAdmRepo.cfg sed -i "s/OGCOREIP/$OGCORE_IP/g" /opt/opengnsys/ogrepository/etc/ogAdmRepo.cfg + # Copiar sudoers file ogrepository/etc/opengnsys-repository + cp /opt/opengnsys/ogrepository/etc/sudoers.d/opengnsys-repository /etc/sudoers.d/opengnsys elif [ "$1" = "configure" ] && [ -n "$2" ]; then echo "Actualización desde la versión $2" fi @@ -76,6 +78,7 @@ fi # Cambiar la propiedad de los archivos al usuario especificado chown opengnsys:www-data /opt/opengnsys/ chown -R opengnsys:www-data /opt/opengnsys/ogrepository +chmod 755 /opt/opengnsys/ogrepository/bin/ # Install http server stuff # Reiniciar servicios si es necesario