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 0db99f0 commit 7b3c4c6Copy full SHA for 7b3c4c6
install/hst-install-ubuntu.sh
@@ -1621,6 +1621,12 @@ if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
1621
if [ -e /etc/rc.local ]; then
1622
sed -i '/exit 0/d' /etc/rc.local
1623
fi
1624
+
1625
+ check_rclocal=$(cat /etc/rc.local | grep "#!")
1626
+ if [ -z "$check_rclocal" ]; then
1627
+ echo "#!/bin/sh" >> /etc/rc.local
1628
+ fi
1629
1630
echo "$HESTIA/bin/v-update-sys-ip" >> /etc/rc.local
1631
echo "exit 0" >> /etc/rc.local
1632
chmod +x /etc/rc.local
0 commit comments