Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
"/var/www/shaarli/data/log.txt" is actualy a directoy for unknow reason :| #45
I'm helping someone debug a broken yunohost apps upgrade and for a totally weird and unknown reason the "file" "/var/www/shaarli/data/log.txt" turned out the actually be a ... directory :|
The problem is that this breaks
Also "/var/www/shaarli/data/log.txt" is owned by root for some reason? The other files are own by "shaarli".
After a quick look in the code I really have no idea on how it has append but here is the full upgrade logs https://paste.yunohost.org/raw/dapixodeni
I guess we can add something in the upgrade script like :
# Test if log.txt is a directory if [[ -d "$final_path/data/log.txt" ]] then # Then delete it ynh_secure_remove "$final_path/data/log.txt" # And run touch to make sure it's a regular file touch "$final_path/data/log.txt" fi
(not tested, not 100% about all the syntax and namings)
Note though that it might still trigger another issue, being that
Anyway, gotta also fix the
I really like shaarli and yunohost.
for the path and the log.txt this is define by shaarli itself
since this file /data/log.txt is create by the apps shaarli would be not better to simply let's the apps create this file instead or doing a touch for it ?
Well, this would solve the problem right now.
Right now it doesn't seems that simple: YunoHost/issues#1390