From a while, I’m on my big project write in Crystal.
Actually when I use my software (ISM), I always fetch the repository under a Virtual Machine and I run my software after I performed a cd with my terminal.
But now, I would like to put my binary into /usr/sbin (because it require the root/sudo privileges)
But I think some problems will occur, specially with the path, because I can’t put the files my program use under the /usr/sbin path, it’s not the purpose for this path.
Port directory: contains synchronized port, in one word some git repositories Settings: settings files for my software (JSON files) ISM directory: all crystal implementation for my software Softwares directory: all software installers (crystal script used by my software with the interpreter) Installed softwares: all recorded installed softwares (JSON files again) Logs directory: all installation logs generated by my software Temporary directory: where ism will download the sources and compile it (already set)
There is a last path not yet mentioned here.
When my software start a task, like install a software, it generate a file ISM.task , it’s a crystal script generated by my software.
I will have a look tomorrow about the Linux convention for the file hierarchy, but if you have any suggestions, I will be happy as well, because for some path, I’m not sure where I’m suppose to put it