litespeedtech / ls-cloud-image

GNU General Public License v3.0
37 stars 38 forks source link

How to manually run interactive script after step 4? #4

Closed Lolosan closed 4 years ago

Lolosan commented 5 years ago

Ubuntu 18.04

After step 4, when relogin to ssh, i'm not geting interactive script to finish setup

How can i run it manually?

Code-Egg commented 5 years ago

May I know which step 4 you mean? like after "Do you wish to force HTTPS rewrite rule for this domain? [y/N]"? If you already added domain and applied SSL success, then you should no need to run it again.

FYI, script is here

If you want to setup another domain and apply SSL for it, please use vhsetup script

Lolosan commented 5 years ago

Thank you for your fast reply

I meant step 4 in wiki tutorial: https://github.com/litespeedtech/ls-cloud-image/wiki

What i'm doing is:

launch new ubuntu 18.04 instance sudo su apt update && apt upgrade

bash <( curl -sk https://raw.githubusercontent.com/litespeedtech/ls-cloud-image/master/Setup/wpimgsetup.sh )

bash <( curl -sk https://raw.githubusercontent.com/litespeedtech/ls-cloud-image/master/Cloud-init/claunch.sh )

Take snapshot

On relogin, domain and ssl setup is expected. Didn't happen

Tried bash <( curl -sk https://raw.githubusercontent.com/litespeedtech/ls-cloud-image/master/Setup/domainsetup.sh )

But ssl ends with error that it cant verify

Code-Egg commented 5 years ago

Hi, I see. Generally you should see a welcome banner and interactive script. It's possible something failed in cloud init, or maybe there's no cloud init package from the base image. Could you check if any error shows on /var/log/cloud-init.log ?

Welcome to join LiteSpeed Community via Slack and message me @Eric, should be able to help you faster if you like.

umarmughal commented 4 years ago

@Lolosan Hey did you find the way how to add domain once auto script is disabled, i am also stuck in same situation.

Code-Egg commented 4 years ago

@umarmughal I probably helped you on the community if I remember correctly. Will close it.