OneCDOnly / sherpa

A mini-package-manager for QNAP NAS
GNU General Public License v3.0
114 stars 13 forks source link

bug: `Deluge-server` starts with error #248

Closed OneCDOnly closed 1 year ago

OneCDOnly commented 1 year ago
Link service start/stop script: deluge-server.sh
Set QPKG information in /etc/config/qpkg.conf
sed: /share/CACHEDEV1_DATA/.qpkg/Deluge-server/config/core.conf: No such file or directory
no configuration file found: using default

Looks like sed is trying to operate on app config file, before config default is in-place.

OneCDOnly commented 1 year ago

This is occurring in the package_routines file.

pkg_post_install()
    {
    QPKG_PATH=$(/sbin/getcfg $QPKG_NAME Install_Path -f /etc/config/qpkg.conf)
    conf_pathfile=$QPKG_PATH/config/core.conf
    geoip_pathfile=$QPKG_PATH/config/GeoIP.dat

    $CMD_SED -i "s|/opt/share/GeoIP/GeoIP.dat|$geoip_pathfile|" $conf_pathfile
    }

May need to shift this into the service script.