3 if [[ "$1" == "--force" ]]; then
6 oldDomain=$(sed -n "/\$systemDomain/ { s/\$systemDomain = '\([^']*\)'/\1/; p }" environments/production/manifests/ip.pp)
7 if $force || [[ "$oldDomain" == "unknown" ]]; then
8 read -rp "Your Domain: " domain
9 sed -i "s/\$systemDomain = '[^']*'/\$systemDomain = '$domain'/" environments/production/manifests/ip.pp
10 oldDomain="$systemDomain"
13 if $force || grep -q "gigi_translation.*unknown" environments/production/manifests/ip.pp; then
14 read -rp "Your Path To Gigi Translation: " gigi
15 sed -i "s!\$gigi_translation = '[^']*'!\$gigi_translation = '$gigi'!" environments/production/manifests/ip.pp
18 if $force || grep -q "internet_iface.*unknown" environments/production/manifests/ip.pp; then
20 read -rp "Your Interface to the Internet: " iface
21 sed -i "s/\$internet_iface = '[^']*'/\$internet_iface = '$iface'/" environments/production/manifests/ip.pp
24 sed -i "s/\$administrativeUser = '[^']*'/\$administrativeUser = '${SUDO_USER:-$USER}'/" environments/production/manifests/ip.pp