05-18-2021, 09:57 PM
(This post was last modified: 05-18-2021, 10:09 PM by TheOldPresbyope.
Edit Reason: added missing semicolon
)
@Tenbagger
The problem is you are creating a symbolic link in moOde's main directory. If you look farther down to line 962 or so in worker.php, you'll see this block of maintenance code in which all such links are summarily deleted.
Rather than mucking with the logic here, I'd try what my first supervisor would call a "brute-force and ignorance" solution. Leave where it is the line of code you've already added and insert a new line at the end of this block to recreate the link during maintenance. It should be obvious why the if-test isn't needed here.
I'm thinking a better solution than this hackery is the addition of a new server stanza to the nginx configuration file but I've used up my time for today so I'll leave that exercise to an interested student (something one of my professors would say).
Too bad Soundirok has no free-trial version for either iOS or Android. Otherwise I'd have tested my proposed solution with it already.
Too bad as well it hasn't been updated in 3 years if it is as good as some say.
Regards,
Kent
The problem is you are creating a symbolic link in moOde's main directory. If you look farther down to line 962 or so in worker.php, you'll see this block of maintenance code in which all such links are summarily deleted.
Code:
// Prune temp or intermediate resources
sysCmd('find /var/www -type l -delete');
sysCmd('rm /var/local/www/imagesw/stations.zip > /dev/null 2>&1');
Rather than mucking with the logic here, I'd try what my first supervisor would call a "brute-force and ignorance" solution. Leave where it is the line of code you've already added and insert a new line at the end of this block to recreate the link during maintenance. It should be obvious why the if-test isn't needed here.
Code:
// Prune temp or intermediate resources
sysCmd('find /var/www -type l -delete');
sysCmd('rm /var/local/www/imagesw/stations.zip > /dev/null 2>&1');
sysCmd('ln -s /var/lib/mpd/music /var/www/soundirok');
I'm thinking a better solution than this hackery is the addition of a new server stanza to the nginx configuration file but I've used up my time for today so I'll leave that exercise to an interested student (something one of my professors would say).
Too bad Soundirok has no free-trial version for either iOS or Android. Otherwise I'd have tested my proposed solution with it already.
Too bad as well it hasn't been updated in 3 years if it is as good as some say.
Regards,
Kent