We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a65bc29 commit 0ffe68aCopy full SHA for 0ffe68a
install/hst-install-ubuntu.sh
@@ -1608,7 +1608,9 @@ fi
1608
# Get public IP
1609
pub_ip=$(curl --ipv4 -s https://ip.hestiacp.com/)
1610
if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
1611
- sed -i '/exit 0/d' /etc/rc.local
+ if [ -e /etc/rc.local ]; then
1612
+ sed -i '/exit 0/d' /etc/rc.local
1613
+ fi
1614
echo "$HESTIA/bin/v-update-sys-ip" >> /etc/rc.local
1615
echo "exit 0" >> /etc/rc.local
1616
$HESTIA/bin/v-change-sys-ip-nat $ip $pub_ip > /dev/null 2>&1
0 commit comments