Refactored welcome.py to use a class so its functions would be callable by remote-install.sh. This ensure the setup uses the same IP address that will be displayed by Dialog.

This commit is contained in:
Xatrekak committed 2023-02-12 02:07:18 -05:00
1 parent 952b4e7249
commit e44999f588
2 files changed
+428 -415

No files matched your search

+6
View File
@@ -450,3 +450,9 @@ service gns3 start
log "Download http://$MY_IP_ADDR:8003/$UUID/$HOSTNAME.ovpn to setup your OpenVPN client after rebooting the server"
fi
if [ $WELCOME_SETUP == 1 ]
then
python3 -c 'import sys; sys.path.append("/usr/local/bin/"); import welcome; ws = welcome.Welcome_dialog(); ws.repair_remote_install()'
su gns3 & cd ~
fi