mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Fixing limits.conf to just use integers.
This commit is contained in:
parent
bb803c50b4
commit
3bb1c95f91
1 changed files with 9 additions and 7 deletions
12
fabfile.py
vendored
12
fabfile.py
vendored
|
@ -325,6 +325,7 @@ def setup_db(engine=None, skip_common=False):
|
|||
setup_db_firewall()
|
||||
setup_db_motd()
|
||||
copy_task_settings()
|
||||
if engine == "memcached":
|
||||
setup_memcached()
|
||||
if engine == "postgres":
|
||||
setup_postgres(standby=False)
|
||||
|
@ -534,10 +535,10 @@ def setup_ulimit():
|
|||
sudo('mv /etc/security/limits.conf /etc/security/limits.conf.bak', pty=False)
|
||||
sudo('touch /etc/security/limits.conf', pty=False)
|
||||
sudo('chmod 666 /etc/security/limits.conf', pty=False)
|
||||
run('echo "root soft nofile $FILEMAX" >> /etc/security/limits.conf', pty=False)
|
||||
run('echo "root hard nofile $FILEMAX" >> /etc/security/limits.conf', pty=False)
|
||||
run('echo "* soft nofile $FILEMAX" >> /etc/security/limits.conf', pty=False)
|
||||
run('echo "* hard nofile $FILEMAX" >> /etc/security/limits.conf', pty=False)
|
||||
run('echo "root soft nofile 10000" >> /etc/security/limits.conf', pty=False)
|
||||
run('echo "root hard nofile 10000" >> /etc/security/limits.conf', pty=False)
|
||||
run('echo "* soft nofile 10000" >> /etc/security/limits.conf', pty=False)
|
||||
run('echo "* hard nofile 10000" >> /etc/security/limits.conf', pty=False)
|
||||
sudo('chmod 644 /etc/security/limits.conf', pty=False)
|
||||
|
||||
# run('touch /home/ubuntu/.bash_profile')
|
||||
|
@ -926,7 +927,8 @@ def setup_do(name, size=2):
|
|||
size_id=size_id,
|
||||
image_id=image_id,
|
||||
region_id=region_id,
|
||||
ssh_key_ids=[str(ssh_key_id)])
|
||||
ssh_key_ids=[str(ssh_key_id)],
|
||||
virtio=True)
|
||||
print "Booting droplet: %s/%s (size: %s)" % (instance.id, IMAGE_NAME, INSTANCE_SIZE)
|
||||
|
||||
instance = doapi.show_droplet(instance.id)
|
||||
|
|
Loading…
Add table
Reference in a new issue