Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
TheOct039276y@linuxxx Can't help you, sorry :(
My only comment would be that there is an exiting condition somewhere, but that's just stating the obvious :/ -
Condor323366yWell I highly respect you and your skills but after having seen that script, I must say in all honesty.. it's shit 😶
-
Condor323366y@gitpush ehm, there are comments if memory serves me right.. But it's a convoluted mess that's a fork of an interactive script that somehow has been made manual (edit, automated.. blame the Duvel).. Needless to say, there's a lot of redundant code from the original interactive script in there.
-
Condor323366y@gitpush 600-ish lines. So yeah pretty long for just OpenVPN. Just a wild guess, but if it were to be entirely rewritten I think it should be possible to shrink it down to 200 at most. So @linuxxx that's what I suggest you do with this thing.. Refactor the shit out of it 😉
-
@Condor isn't interactive and manual the same thing? if you're talking about angristans fork of nyrs script - both have the interactive walkthrough iirc
-
@Condor I'll use the chance to also mention that angristan even if hackily implemented a lot of changes to the fork that nyr is too spastic to merge or even consider, because of his elitist view of that install script.
-
Condor323366y@JoshBent blame the booze 😛 it's an interactive script that's been hacked into accepting command-line arguments. That way it could be automated.. But it's a bodge.
-
Condor323366y@JoshBent oh and I recall that it was actually the angristan script that's been forked!
-
@Condor wait.. you've got to be wrong, because linuxxx is clearly writing he wanted to add that function, which implies it doesn't exist yet, maybe lay the phone aside 😂
-
Condor323366y@JoshBent exactly, the fork from @linuxxx has it hacked in. Kinda dirty IMO, but somehow it works.. Until there's an update or any kind of system change, that is.
-
Condor323366y@JoshBent well that's what it looks to be developed against.. I mean it's got that repo credited and everything. Very different from the repos from the Python Lord! Proper crediting.. kinda rare these days.
Anyway, that's where the script came from, and that's why I think that it's a hack. The original is highly interactive while the objective from @linuxxx was to automate it. That's where I'd have started from 0, especially since bash is the only language in which I can code reasonably well. But instead it's been that script, turned into a dirty hack that somehow accepts arguments over its interactive parts. Kinda like WordPress now that I think of it 🤔
.. Anyway, I'll put my phone to the side for now 😛 the Duvel ain't helping and Collin Cunningham is about to show me some electronics stuff as a light-minded little refresher :3 -
@Condor tbh I don't think there's much needed to make it non interactive last time I've seen it and also maintaining it towards the upstream won't be hard either, as there's rarely major changes, so I don't see it as a wordpress implementation 😅
-
@JoshBent This is the one from angristan, just want to automate it so it doesn't need input :)
-
Related Rants
-
rephiscorth38Everyone here ranting about a fucking missing semicolon. I can't remember the last time a missing semicolon wa...
-
CodesNotHot10-Laughed at Gitlab the other day -Accidentally dropped my db today. fuck karma
-
codeclod15When you have a super annoying problem that Google has been unable to help with... But you stumble upon a link...
Tried to modify a script again which pretty much installs a ready to use vpn server on a server.
Tried to modify it so that it takes arguments instead of manual input.
It is, fucking, yet again, quitting right after an apt install command.
Error exit code? Oh no, a perfectly fine fucking 0. Which means it ran successfully.
Successfully my fucking ass. You aren't even through half the motherfucking script!?
Fucking hell. Fuck my life sideways.
rant
fuck