Having a look at your script.sh … First I gotta say : I’m fascinated by the amount of energy that went into the writing of that script … Also it’s honestly pretty clean !
But then …
# hack YunoHost install_script for bypass systemd check
sed -i \"s@/run/systemd/system@/run@g\" /tmp/install_script/install_yunohost
… Alright, I guess if you absolutely know what you’re doing, why not …
But theeeeeen :
# patchs for yunohost
adduser admin
The admin user is supposed to be an LDAP user … If it’s not well … This is not a yunohost server anymore, this is just a cyber-frankenstein. I’m pretty sure that at one point or another, everything will just “not work” in the best case scenario, and “explode into an epic fireball” in the worst case scenario.
Glad it works for your use case, but I would absolutely not recommend anybody that doesn’t know what he/she’s doing to use this for any kind of production server…