File ownership after migration
-
I was testing cloudron migration for my test/dev server and everything worked fine apart from the file ownership inside /app/data weren't correct after the migration. I had to manually do a
chown cloudron:cloudron
to fix it.Since the only app on that server was one of my own, I was wondering if I did anything wrong in the app itself that would cause this to happen.
Should all file ownership be handled by the migration or is it left to the app itself to fix this during its init?
-
Right an app package should ensure the file permissions it expects in the start.sh (by convention or any other script which runs as the container entrypoint). Usually this means running a
chown
on/app/data
.So since you have a custom app, this may just be missing in your package. Our docs on app packaging are a bit lacking here
-
Sweet, thanks. I added it to my start script.
-
D DidierMalenfant has marked this topic as solved