Skip to content

Commit c0b9609

Browse files
committed
Create rc.local during installation, if missing.
1 parent 7651db5 commit c0b9609

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

install/hst-install-ubuntu.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,8 @@ pub_ip=$(curl --ipv4 -s https://ip.hestiacp.com/)
16451645
if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
16461646
if [ -e /etc/rc.local ]; then
16471647
sed -i '/exit 0/d' /etc/rc.local
1648+
else
1649+
touch /etc/rc.local
16481650
fi
16491651

16501652
check_rclocal=$(cat /etc/rc.local | grep "#!")

0 commit comments

Comments
 (0)