From 7689b7841f29c1017d7fa0009917f5afee3be2f6 Mon Sep 17 00:00:00 2001 From: Xatrekak Date: Sat, 11 Feb 2023 21:00:37 -0500 Subject: [PATCH] switched to modifed welcome by and full path to it --- scripts/remote-install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/remote-install.sh b/scripts/remote-install.sh index a60cb4b5..7bd9a490 100644 --- a/scripts/remote-install.sh +++ b/scripts/remote-install.sh @@ -308,7 +308,10 @@ NEEDRESTART_MODE=a apt-get install -y python3-pip NEEDRESTART_MODE=a pip install --no-input --upgrade pip NEEDRESTART_MODE=a pip install --no-input pythondialog -curl https://raw.githubusercontent.com/Xatrekak/gns3-server/master/scripts/welcome.py > /usr/local/bin/welcome.sh +curl https://raw.githubusercontent.com/Xatrekak/gns3-server/remote_install_changes/scripts/welcome.py > /usr/local/bin/welcome.sh + +chmod 755 /usr/local/bin/welcome.sh +chown gns3:gns3 /usr/local/bin/welcome.sh mkdir /etc/systemd/system/getty@tty1.service.d cat < /etc/systemd/system/getty@tty1.service.d/override.conf @@ -320,7 +323,7 @@ EOFI chmod 755 /etc/systemd/system/getty@tty1.service.d/override.conf chown root:root /etc/systemd/system/getty@tty1.service.d/override.conf -echo "python3 welcome.py" >> /opt/gns3/.bashrc +echo "python3 /usr/local/bin/welcome.sh" >> /opt/gns3/.bashrc fi