Guest User

Untitled

a guest
Jun 20th, 2018
115
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. if __name__ == '__main__':
  4.     f = open('nginx.txt', 'r')
  5.     data = f.read()
  6.     f.close()
  7.  
  8.     input = input('Введите домен сайта: ')
  9.  
  10.     data = data.replace('%domain%', input)
  11.  
  12.     new_file = open(input+'.conf', 'w')
  13.     new_file.write(data)
  14.     new_file.close()
RAW Paste Data