Closed desrod closed 1 year ago
@desrod Thanks a lot for raising this issue, All your point are noted and will be implemented in the codebase.
As a matter of process, you really shouldn't close opened, acknowledged issues, without a commit that addresses those issues.
This issue remains open, and I don't see any commits referencing these fixes, so why is the issue being closed?
It's a simple matter to clean and lint your shell scripts with tools like
shellcheck
and others.There are some pretty odd constructs in your scripts which could use some additional attention, especially since they're intended to be run as root.
For example:
Why not just use
kvm-ok
, like other modern architectures are using. Simply having the CPU flags exposed doesn't guarantee they can be used for successful virtualization.Another odd one I found:
Why are these 3 separate commands, and why three separate ways of executing them? Why is
php-dev
being installed twice?How about just:
This is done in a couple of places. Let's fix that first.
Also, why these two:
When you can just do:
You're also not doing any error checking on these commands, if they fail, or if commands you expect to be there are not (like
a2enmod
).And using
service
has been deprecated long ago. You wantsystemctl
, so you can use the more modernsystemd
way of managing services.This, is also bad, and overwrites the user's intended Python interpreter, without their knowledge:
Don't do that. Use the proper Debian facilities,
dpkg-divert
ordpkg-reconfigure python3
.It's a great start for a v0.0 of your project, but let's keep it clean, POSIX correct, and secure enough that it won't break an existing user's system without lots of untangling.