Skip to content

Commit

Permalink
add tips when installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooke9537 committed Aug 26, 2019
1 parent 1a35931 commit 9ebc69c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions install.py
Expand Up @@ -62,8 +62,9 @@ def install_openresty( ):
# May Not Work in CI
# exec_sys_cmd( 'export PATH=/opt/verynginx/openresty/nginx/sbin:$PATH' )

print('### add user and group nginx:nginx')
exec_sys_cmd( 'groupadd -f nginx && useradd -g nginx nginx' )
# print('### add user and group nginx:nginx')
# May Not Work in CI
# exec_sys_cmd( 'sudo groupadd -f nginx && useradd -g nginx nginx' )

def install_verynginx():

Expand Down Expand Up @@ -161,4 +162,5 @@ def show_help_and_exit():

else:
print ('install.py had been imported as a module')

print ('please add group and user nginx:nginx')
print ('to use nginx, add it in PATH: \nexport PATH=/opt/verynginx/openresty/nginx/sbin:$PATH')

0 comments on commit 9ebc69c

Please sign in to comment.