Installation on LightSail

Easy improvement to the app’s install algorithm: Before writing to the install log, which is the first time the app tries to write to the app directory, check the type of the opened file’s $stream, if it’s not the expected type, a resource, then stop the install, and attempt to fix the permissions and ownership. To do this, check if the app has enough permissions to fix permissions by itself, and if yes, run the 4 commands to fix the permissions and ownership, and verify they worked without error. If either the app doesn’t have enough permissions to fix permissions, or the commands to fix the permissions failed, tell the user “permissions and ownership are incorrect”, and show the 4 commands the admin should run to fix the problem.

2 Likes