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:cloudronto 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
chownon/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 on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login