ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Nginx variables in bash script

    IT Discussion
    nginx scripting automation web server
    2
    2
    1.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • antonitA
      antonit
      last edited by antonit

      I am currently writing a script to automate the process of installation and configuration of an Nginx web server. What I'd like to do is add variables where anyone can change the IP address and hostname to what they would like to. I am by no means a scripting expert and it's been a while since I had to write a script. I am looking how to do this in bash.

      1 Reply Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller
        last edited by

        You can take them as arguments when you first run the script, that is the more "UNIX" way. Or you can prompt for them as you go.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post