Added gevent server for tasks
This commit is contained in:
parent
a9762c1a11
commit
0e0131334a
5 changed files with 449 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3 -u
|
||||
#!/opt/pythonenv/bin/python3 -u
|
||||
|
||||
# A script for install pzoo user
|
||||
|
||||
|
|
@ -17,7 +17,7 @@ if linux_distro=='arch':
|
|||
if call("sudo pacman -Syu --noconfirm", shell=True) > 0:
|
||||
print('Error, cannot upgrade server...')
|
||||
exit(1)
|
||||
elif linux_distro=='debian':
|
||||
elif linux_distro=='debian' or linux_distro=='ubuntu':
|
||||
|
||||
if call('sudo DEBIAN_FRONTEND="noninteractive" apt-get -y update', shell=True) > 0:
|
||||
print('Error, cannot upgrade server...')
|
||||
|
|
@ -30,7 +30,7 @@ elif linux_distro=='debian':
|
|||
if call(update_command, shell=True) > 0:
|
||||
print('Error, cannot upgrade server...')
|
||||
exit(1)
|
||||
elif linux_distro=='rocky' or linux_distro=='fedora':
|
||||
elif linux_distro=='rocky' or linux_distro=='fedora' or linux_distro=='alma' or linux_distro=='centos':
|
||||
|
||||
if call("sudo dnf upgrade -y", shell=True) > 0:
|
||||
print('Error, cannot upgrade server...')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue