jdel / sspks

A very simple Synology Package Server, reverse engineered from the official Synology package repository and SynoCommunity.
GNU General Public License v3.0
256 stars 63 forks source link

Allow to override /tmp #85

Open picrap opened 2 years ago

picrap commented 2 years ago

For some obscure reasons, when the cache directory is set to a /tmp subdirectory, the move fails when parsing packages:

[Mon Aug 16 11:28:34.237121 2021] [php7:warn] [pid 52168] [client x.x.x.x:35371] PHP Warning:  rename(/tmp/PACKAGE_ICON.PNG,/tmp/cache/sspks/xxx-9.0.14924.1615beta_thumb_72.png): No such file or directory in /xxx/content/20210816T110645/lib/sspks/lib/SSpkS/Package/Package.php on line 217

It seems that private tmp only works partially?

picrap commented 2 years ago

The simplest option is probably to always use the cache directory or maybe the /dev/shm

picrap commented 2 years ago

Relates to #68