Skip to content

Commit 7b3c4c6

Browse files
author
Kristan Kenney
committed
Fix issue with rc.local not being executable
1 parent 0db99f0 commit 7b3c4c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

install/hst-install-ubuntu.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,6 +1621,12 @@ if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
16211621
if [ -e /etc/rc.local ]; then
16221622
sed -i '/exit 0/d' /etc/rc.local
16231623
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+
16241630
echo "$HESTIA/bin/v-update-sys-ip" >> /etc/rc.local
16251631
echo "exit 0" >> /etc/rc.local
16261632
chmod +x /etc/rc.local

0 commit comments

Comments
 (0)