[QPKG] SortMyQPKGs

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
Post Reply
User avatar
OneCD
Ask me anything
Posts: 8102
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] Sort my QPKGs

Post by OneCD » Fri Nov 24, 2017 2:16 am

rs1001 wrote:Thank you! Just what I needed to make me dread having to reboot.

Hopefully you won't dread anymore. :DD

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

PatZy
New here
Posts: 9
Joined: Fri Aug 21, 2015 3:46 am

Re: [QPKG] Sort my QPKGs

Post by PatZy » Thu Dec 07, 2017 7:24 am

One little bug report:

Here is my log:

Code: Select all

 * New QPKG order *
(01) (A) DownloadStation
(02) (A) Python
(03) (A) Entware-ng
(04) (A) JRE
(05) (Φ) MusicStation
(06) (Φ) PhotoStation
(07) (Φ) QKVM
(08) (Φ) CloudLink
(09) (Φ) git
(10) (Φ) VideoStationPro
(11) (Φ) owncloud
(12) (Φ) netmgr
(13) (Φ) Qcenter
(14) (Φ) ProxyServer
(15) (Φ) container-station
(16) (Φ) ubuntu-hd
(17) (Φ) Qcenter-Agent
(18) (Φ) CMS_INDEX_LIST
(19) (Φ) =
(20) (Φ) 1
(21) (Φ) ResourceMonitor
(22) (Φ) QsyncServer
(23) (Φ) browser-station
(24) (Φ) helpdesk
(25) (Φ) QcloudSSLCertificate
(26) (Φ) QNginx
(27) (Ω) sort-my-qpkgs


You can see that 18-20 shouldn't be enlisted as they come from a section in Qcenter-Agent:

Code: Select all

RC_Number = 101
Display_Name = Q'center Agent
WebUI = QTS_desktop
Desktop = 1
Enable = FALSE
QCENTER_INFO_VERSION = 1.0
CMS_INDEX_LIST = [1]
PRIMARY_CMS_INDEX = -1


Additionally, I prefer QNginx to be started as an alpha as it has the same aim as QApache but I manually adjusted that one. Thanks a lot for your work, this is perfect!

User avatar
OneCD
Ask me anything
Posts: 8102
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] Sort my QPKGs

Post by OneCD » Thu Dec 07, 2017 1:25 pm

PatZy wrote:One little bug report:

Here is my log:

Code: Select all

 * New QPKG order *
...
(18) (Φ) CMS_INDEX_LIST
(19) (Φ) =
(20) (Φ) 1

You can see that 18-20 shouldn't be enlisted as they come from a section in Qcenter-Agent:

Code: Select all

CMS_INDEX_LIST = [1]


Oh, that's not something I had allowed for. I don't know why QNAP decided to put that single value in brackets. Hopefully, this didn't cause the sorter to choke when it was moving things around in your qpkg.conf file. :'

I'll modify the sorter to accept only lines starting with [ as the package name.

Good pickup. Thanks for the report! :geek:

PatZy wrote:Additionally, I prefer QNginx to be started as an alpha as it has the same aim as QApache but I manually adjusted that one.

I'll add QNginx to the Alpha list too.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

GuillaumeJ
Starting out
Posts: 21
Joined: Mon Jan 11, 2016 7:25 pm

Re: [QPKG] Sort my QPKGs

Post by GuillaumeJ » Wed Dec 13, 2017 5:42 pm

I installed manually your great tool a long time ago (and forgot how I did it)

Can i Install right now the QPKG version and it won't call / use the old version ?

Thanks, btw.

User avatar
OneCD
Ask me anything
Posts: 8102
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] Sort my QPKGs

Post by OneCD » Thu Dec 14, 2017 1:09 am

GuillaumeJ wrote:Can i Install right now the QPKG version and it won't call / use the old version ?

IIRC, prior to the QPKG, it was only a run-once script. It wasn't installed. So, should be OK to install the QPKG version now. :geek:

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

PatZy
New here
Posts: 9
Joined: Fri Aug 21, 2015 3:46 am

Re: [QPKG] Sort my QPKGs

Post by PatZy » Fri Dec 15, 2017 7:03 pm

OneCD wrote:Oh, that's not something I had allowed for. I don't know why QNAP decided to put that single value in brackets. Hopefully, this didn't cause the sorter to choke when it was moving things around in your qpkg.conf file. :'

I'll modify the sorter to accept only lines starting with [ as the package name.

Good pickup. Thanks for the report! :geek:

I had this fear too and double-checked the sorting, but it left everything intact within the Qcenter-Agent paragraph.
Thank you for the quick fix and for adding QNginx to alpha!

User avatar
Toxic17
Ask me anything
Posts: 5433
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [QPKG] Sort My QPKGs

Post by Toxic17 » Wed Dec 20, 2017 6:19 am

Thanks for the update!

though downloading it from the QNAP EU Store (in my app center) failed

Type Date Time Users Source IP Computer name Content
Error 19/12/2017 22:19:25 admin x.x.x.x localhost [App Center] Failed to download SortMyQPKGs from https://www.qnapclub.eu/provider.php/qp ... 71219.qpkg.
Regards Simon

QTS 4.x User Guidex

QNAP Club Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following


NAS: TS-473-32GB QM2-2P QXG-10G1T 4.4.2.1354 • TVS-463-16GB 4.4.2.1354 QM2-2S10G1TB • TS-459 Pro 2GB 4.2.6 • TS-121 4.3.3.1161 • APC Back-UPS ES 700G •
QPKG's: Plex 1.19.3 • Apache73 v2443.74070 • QSonarr 3.0.3.809 • QNBZGet 21.0 • phpMyAdmin 5.0.2 • Qmono 6.80.105 • McAfee 3.1.0 -6010 • HBS 3.0.200424 • LEgo v3.6.0
Network: VM Hub 3.0 <500/35> • UniFi USG Pro 4 • UniFi USW-16-150W • UniFi USW-8-60W • UniFi CloudKey Gen2+ • UniFi G3-Flex • UAP AC Pro • UAP AC Lite • SLM2008 • Dell 7050 MFF •

User avatar
OneCD
Ask me anything
Posts: 8102
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] Sort My QPKGs

Post by OneCD » Wed Dec 20, 2017 6:31 am

Hi Simon. :)

I just tried the location shown in your post and it worked OK here. Checksum also matches my original before upload to the Club Store.

Maybe Christophe is having trouble with the Store. Can you try it again later?

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

User avatar
Toxic17
Ask me anything
Posts: 5433
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [QPKG] Sort My QPKGs

Post by Toxic17 » Wed Dec 20, 2017 7:28 am

I've managed to manually downloaded the QPKG and installed it that way. Thanks
Regards Simon

QTS 4.x User Guidex

QNAP Club Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following


NAS: TS-473-32GB QM2-2P QXG-10G1T 4.4.2.1354 • TVS-463-16GB 4.4.2.1354 QM2-2S10G1TB • TS-459 Pro 2GB 4.2.6 • TS-121 4.3.3.1161 • APC Back-UPS ES 700G •
QPKG's: Plex 1.19.3 • Apache73 v2443.74070 • QSonarr 3.0.3.809 • QNBZGet 21.0 • phpMyAdmin 5.0.2 • Qmono 6.80.105 • McAfee 3.1.0 -6010 • HBS 3.0.200424 • LEgo v3.6.0
Network: VM Hub 3.0 <500/35> • UniFi USG Pro 4 • UniFi USW-16-150W • UniFi USW-8-60W • UniFi CloudKey Gen2+ • UniFi G3-Flex • UAP AC Pro • UAP AC Lite • SLM2008 • Dell 7050 MFF •

User avatar
OneCD
Ask me anything
Posts: 8102
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] Sort My QPKGs

Post by OneCD » Wed Dec 20, 2017 8:23 am

That's great. :geek:

BTW: Just tried this myself via the Qnapclub repo (my first time using it) and also worked OK.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

User avatar
Toxic17
Ask me anything
Posts: 5433
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: [QPKG] Sort My QPKGs

Post by Toxic17 » Wed Dec 20, 2017 4:27 pm

OneCD wrote:That's great. :geek:

BTW: Just tried this myself via the Qnapclub repo (my first time using it) and also worked OK.



uninstalled this morning and tried again, its now working from app center. maybe i jumped the gun...
Regards Simon

QTS 4.x User Guidex

QNAP Club Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following


NAS: TS-473-32GB QM2-2P QXG-10G1T 4.4.2.1354 • TVS-463-16GB 4.4.2.1354 QM2-2S10G1TB • TS-459 Pro 2GB 4.2.6 • TS-121 4.3.3.1161 • APC Back-UPS ES 700G •
QPKG's: Plex 1.19.3 • Apache73 v2443.74070 • QSonarr 3.0.3.809 • QNBZGet 21.0 • phpMyAdmin 5.0.2 • Qmono 6.80.105 • McAfee 3.1.0 -6010 • HBS 3.0.200424 • LEgo v3.6.0
Network: VM Hub 3.0 <500/35> • UniFi USG Pro 4 • UniFi USW-16-150W • UniFi USW-8-60W • UniFi CloudKey Gen2+ • UniFi G3-Flex • UAP AC Pro • UAP AC Lite • SLM2008 • Dell 7050 MFF •

dkalive
Starting out
Posts: 18
Joined: Thu Sep 17, 2015 3:28 am

Re: [QPKG] SortMyQPKGs

Post by dkalive » Thu Dec 28, 2017 12:15 am

This package has been a life safer for me! Thanks so much!

I was having issues with some services starting. Uninstalling and reinstalling wasn't working. Now I've installed this, it's working perfectly.

TorbenB
Starting out
Posts: 11
Joined: Sun Oct 16, 2011 5:18 pm

Re: [QPKG] SortMyQPKGs

Post by TorbenB » Fri Jan 05, 2018 5:40 am

Two things:

1. When installing Plex by downloading the QPKG directly from Plex.tv, it's named PlexMediaServer, just like Emby also has an EmbyServer entry

2. A more personal issue: Whenever I have sorted the list and restarted the NAS, the QPKG order is back to the original, as if qpkg.conf somehow being reset.

Code: Select all

[Thu Jan  4 18:09:25 CET 2018] 'autofix' requested

 * Original QPKG order *
(01) (Φ) git
(02) (Φ) PlexMediaServer
(03) (Φ) QcloudSSLCertificate
(04) (Φ) helpdesk
(05)#(A) Python
(06)#(Ω) CouchPotato2
(07)#(Ω) SABnzbdplus
(08)#(Ω) SickBeard
(09)#(Ω) SortMyQPKGs
(10)#(A) update_qpkg_conf

 * New QPKG order *
(01) (A) update_qpkg_conf
(02) (A) Python
(03) (Φ) git
(04) (Φ) PlexMediaServer
(05) (Φ) QcloudSSLCertificate
(06) (Φ) helpdesk
(07) (Ω) SABnzbdplus
(08) (Ω) SickBeard
(09) (Ω) CouchPotato2
(10) (Ω) SortMyQPKGs


[Thu Jan  4 18:05:30 CET 2018] 'init' requested

 * Original QPKG order *
(01)#(A) update_qpkg_conf
(02)#(A) Python
(03) (Φ) git
(04) (Φ) PlexMediaServer
(05) (Φ) QcloudSSLCertificate
(06) (Φ) helpdesk
(07)#(Ω) SABnzbdplus
(08)#(Ω) SickBeard
(09)#(Ω) CouchPotato2
(10)#(Ω) SortMyQPKGs

 * New QPKG order *
(01) (A) update_qpkg_conf
(02) (A) Python
(03) (Φ) git
(04) (Φ) PlexMediaServer
(05) (Φ) QcloudSSLCertificate
(06) (Φ) helpdesk
(07) (Ω) SABnzbdplus
(08) (Ω) SickBeard
(09) (Ω) CouchPotato2
(10) (Ω) SortMyQPKGs

I also tried editing the etc/config/qpkg.conf manually (using WinSCP and the builtin editor), and ordering the apps like SortMyQPKGs suggest, but to no avail, as after every reset, it's back again to where it was before. Even just a simple thing like moving the Python block to the top is reset.

I haven't been able to find where the temporary qpkg.conf is located, or what is actually doing this. The etc/default_config/qpkg.conf has not been tampered with, and installing/uninstalling apps both manually and from the QTS store updates the .conf file without issues.

Running 4.2.6 on a TS-439 Pro II+

User avatar
OneCD
Ask me anything
Posts: 8102
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] SortMyQPKGs

Post by OneCD » Fri Jan 05, 2018 6:03 am

TorbenB wrote:1. When installing Plex by downloading the QPKG directly from Plex.tv, it's named PlexMediaServer, just like Emby also has an EmbyServer entry

Thank you - I've now added PlexMediaServer to the ALPHA list.

TorbenB wrote:2. A more personal issue: Whenever I have sorted the list and restarted the NAS, the QPKG order is back to the original, as if qpkg.conf somehow being reset.

Note that you don't have to sort the list - it happens automatically when the NAS begins to shutdown.

However, for testing, let's run it manually and check that the changes are being applied. Can you please run the following and post the result back here? You won't need to restart the NAS.

Code: Select all

grep '^\[' /etc/config/qpkg.conf; /etc/init.d/sort-my-qpkgs.sh fix; grep '^\[' /etc/config/qpkg.conf

TorbenB wrote:I haven't been able to find where the temporary qpkg.conf is located, or what is actually doing this.

SortMyQPKGs does not use a temporary qpkg.conf while editing. It backs-up your existing qpkg.conf, then performs all edits on the original file.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

TorbenB
Starting out
Posts: 11
Joined: Sun Oct 16, 2011 5:18 pm

Re: [QPKG] SortMyQPKGs

Post by TorbenB » Fri Jan 05, 2018 6:16 am

No restart

Code: Select all

[/] # grep '^\[' /etc/config/qpkg.conf; /etc/init.d/sort-my-qpkgs.sh fix; grep '^\[' /etc/config/qpkg.conf
[update_qpkg_conf]
[Python]
[git]
[PlexMediaServer]
[QcloudSSLCertificate]
[PlexPy]
[helpdesk]
[SABnzbdplus]
[SickBeard]
[CouchPotato2]
[SortMyQPKGs]

 * Original QPKG order *
(01)#(A) update_qpkg_conf
(02)#(A) Python
(03) (Φ) git
(04) (Φ) PlexMediaServer
(05) (Φ) QcloudSSLCertificate
(06) (Φ) PlexPy
(07) (Φ) helpdesk
(08)#(Ω) SABnzbdplus
(09)#(Ω) SickBeard
(10)#(Ω) CouchPotato2
(11)#(Ω) SortMyQPKGs

 * New QPKG order *
(01) (A) update_qpkg_conf
(02) (A) Python
(03) (Φ) git
(04) (Φ) PlexMediaServer
(05) (Φ) QcloudSSLCertificate
(06) (Φ) PlexPy
(07) (Φ) helpdesk
(08) (Ω) SABnzbdplus
(09) (Ω) SickBeard
(10) (Ω) CouchPotato2
(11) (Ω) SortMyQPKGs

 ! NOTE: you must restart your NAS to load the QPKGs in this order.

[update_qpkg_conf]
[Python]
[git]
[PlexMediaServer]
[QcloudSSLCertificate]
[PlexPy]
[helpdesk]
[SABnzbdplus]
[SickBeard]
[CouchPotato2]
[SortMyQPKGs]
[/] #

Post Reply

Return to “Community Apps”