So the sng install script was put together by AI or some jr dev who uses stackexchange to learn bash. I dunno but it was trash. Some of my first contributions back to FreePBX were bash including something like the MOTD you see today before we worked to unify languages down to PHP and JavaScript. In any case I really dig the power of bash and the magic it can do in the right hands. Hell I scripted my way through most of my CS program in college. A good sysadmin spends most of their time perfecting their solitaire game. Perhaps debugging the secret unreal server on their network. In any case I went through and damn near rewrote there script to make it less resource intensive, faster and easy enough for an idiot to maintain. My favorite open solution advocate apparently is helping with code reviews. If you have seen his geocities-esque website you know BUSINESS website you know how awful that probably is. As one of the India team took it and was going to work with me he decided to request it be like 20 PRs. As mentioned it was trash so all changes were interlinked. Anyway I washed my hands of it and closed the PR. I still want FreePBX to succeed, even with this venture happening. At the end of the day I will simply submit big fixes and necessary fixes upstream as needed for people and others participating here.
4 Likes
A bash install script in this modern era should be something like…
#!/bin/bash
echo "Installing FreePBX..."
# here is where you execute the provisioning software which is not 5k more lines of bash
kickstart was used in previous iterations of FreePBX ISO. Everyone seems to have liked that.
Really, anything is better than a kludgy bash script.
Yeah, you will note all their debs are/were made with alien. SNG7 was written by Rob. Ultimately they don’t have the skill set to do a lot of things. Sadly when you offer to help it results in mixed results. The India team has historically been good about working with me but now they have C-Dizzle blocking things.