so I was looking at NextCloud and they have a installation script

and the first actual lines:

# Prefer IPv4
sed -i "s| ::ffff:0:0/96 100|precedence ::ffff:0:0/96 100|g" /etc/gai.conf

how to get me annoyed with your software in 30s right there

raw.githubusercontent.com/next

and it does it without letting the person running the script know, no echo "we are changing your system's IP version preference BTW"

Show thread

I'm checking the git commit history for the file to see why that was added

Show thread

I'm about to fork this, remove that bit and submit a pull request

Show thread

okay so the maintainer tells me there is a second script that changes the value back to preferring IPv6

github.com/nextcloud/vm/pull/1

I'm still not sure /why/ the script needs to set that preference, even temporarily, so I asked

Show thread

"It has to do with the functions regarding the network, checks and so forth. I don't remember 100% to be honest, but I remember that when I removed it, weird stuff started to happen."

Closed #1033.

馃し馃従鈥嶁檪锔 馃し馃従鈥嶁檪锔 馃し馃従鈥嶁檪锔 馃し馃従鈥嶁檪锔 馃し馃従鈥嶁檪锔

Show thread

I guess I鈥檒l add testing and debugging a Bash script to my to do list because I鈥檓 curious what exactly breaks if the gai.conf preference is not changed

Show thread

time to fire up a testing VPS to run the version of the script that doesn't make any changes to gai.conf to see what happens

Show thread

so I fire up my usual 1GB Linode to do this and:

Error: 2 GB RAM required to install Nextcloud!
Current RAM is: (1 GB)

Show thread

the cloud gods are not pleased with my paltry offering of 1GB of RAM

Show thread

so the script with the modifications to gai.conf removed finished the install with no issues

Show thread

so I've confirmed that the script runs just fine on a dual stack system with no need for modification to IP version preference

I don't really want to fight with the maintainer over another pull request so I'm just gonna terminate this VM and move the fuck on

Show thread

@packetcat ayyy 馃帀馃帀 I've had my own nextcloud troubles recently lmao

@packetcat My opinion of Nextcloud was already pretty low. This thread is lowering it even more.

Sign in to participate in the conversation
Ten Forward

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!